← Back to team overview

sslug-teknik team mailing list archive

how to ignore server Pragma no-cache? (was: how to debug entries in squid's store.log)

 

I found out that the reason squid doesn't cache html files from one of
sites, is because the server sends Pragma: No-cache in the response..

Do any of you know how to set squid 2.5 to ignore this?

I found this via google:

>>
I sent the following message earlier, and have since implemented a
solution. I have added a "ignore-no-cache" option to the
refresh-pattern
configuration. I am currently using the following line for the problem
URLs mentioned below and a few others to force them to cache for 30
minutes:

refresh_pattern /RealMedia/ads/ 30 20% 4320 ignore-no-cache


The patch is against Squid 2.2.STABLE4 and is located at:


http://www.omdev.com/squid/squid-2.2.STABLE4.ignore-no-cache.patch


It's fairly simple, but I'd appreciate any comments, as this is my
first attempt at modifying Squid.


Dave
<<

/Klavs


References