Aug 9, 2011
tom

how to configure squid to never look into sever if cache file is not older than let’s say 3h?

Question

So I need squid to be completely silent to some pages when these pages are cached, and I also need to cache everything from these domains. Silent that is not even send request to check if particular resource was updated. I need this only for specific domain, not whole net.

I am very new to squid.

The reason is that Im writing something that needs often to query remote servers so it could be taken as a malware on my system or a conscious attempt to break security on that server. So I need to perform these connections locally. It wouldn’t have much sense if my proxy would try to connect to remote server for every my local request even for checking if there are modifications to cached files.

Answer

Check refresh_pattern directive.

Related posts:

  1. Squid Cache control based on HTTP Replies
  2. How to configure Squid with for authentication but skip it for local requests?
  3. Making squid use a proxy
  4. Squid site redirection
  5. /var/log/squid/access.log is empty when I use proxy from remote computers

Leave a comment