[squid-users] caching question
Amos Jeffries
squid3 at treenet.co.nz
Wed Aug 26 05:30:14 UTC 2015
On 26/08/2015 2:10 p.m., Alex Samad wrote:
> Hi
>
> Sorry, answered my own question.
>
> acl nonCacheURL urlpath_regex .*/x86_64/repodata/repomd.xml$
> cache deny nonCacheURL
Almost exactly like that. Just without the ".* at the start of the pattern.
All regex patterns are assumed to start and end with .* by default
unless you specify the ^ or $ start/end anchors explicitly.
>
> seems like "" makes it look for a file ?
Yes.
If those old files were delivered without Expires/Cache-Control headers
(or if you used override-expires on *.xml) then your refresh_pattern are
the cause of the old files being cached too long in the first place.
This pattern will prevent them being stored heuristically, but otherwise
let the repos cache controls work as designed by the repo operators.
refresh_pattern /repodata/repomd.xml$ 0 0% 0
Amos
More information about the squid-users
mailing list