Re: [squid-users] How to force squid to cache files when using auth ?

From: Chris Robertson <crobertson_at_gci.net>
Date: Mon, 14 Dec 2009 11:47:11 -0900

Thomas Bergerot wrote:
> Hi again,
>
> I've used the following option :
>
> refresh_pattern /files/ 600000 100% 700000 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth
>
> Since the requests i want to cache are : http://www.whatever.com/files/myfile
>
> Does it seem to be okay for you ?
>
> Regards
>
> Thomas

That looks like it should work. Be aware that refresh_pattern is on a
first-match basis, so put this rule first. If you find that it's
matching too much...

refresh_pattern whatever\.com/files/ 600000 100% 700000 override-[and so on]

...would take a bit more CPU to process, but would be more focused.

Chris
Received on Mon Dec 14 2009 - 20:47:41 MST

This archive was generated by hypermail 2.2.0 : Tue Dec 15 2009 - 12:00:02 MST