O
O
Oleg2020-03-31 11:06:33
Squid
Oleg, 2020-03-31 11:06:33

SQUID FOR WINDOWS How to configure assets.uchi.ru caching?

There is a platform for students. I don’t know what the developers did there, but their
subdomain for distributing statics does not allow the browser to cache it.

How to set up SQUID correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2020-03-31
@402d

Understood.
Uncomment the
cache_dir aufs /cygdrive/d/squidcachedir/cache 3000 16 256 line in
the config and edit the path to the C drive
cache_dir aufs /cygdrive/c/squidcachedir 3000 16 256
Next
1) stop the service
2) squid -z -F
3) start the service .
The force key was needed and the service should not work at the time of re-creation.
Added such rules. Please critique.
refresh_pattern -i \.css$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.gif$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.png$ 43200 100% 43200 override-lastmod override- expire
refresh_pattern -i \.jpg$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.svg$ 43200 100% 43200 override-lastmod override-expire
refresh_pattern -i \.woff2$ 43200 100% 43200 override-lastmod override- expire
refresh_pattern -i \.jpeg$ 43200 100% 43200 override-lastmod override-expire
js files should not be cached. It looks like they are dynamically created there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question