Re: [squid-users] How to force squid to cache files when using auth ?
Thomas Bergerot wrote: Hi again, I've used the following option : refresh_pattern /files/ 60 100% 70 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/ 60 100% 70 override-[and so on] ...would take a bit more CPU to process, but would be more focused. Chris
RE: [squid-users] How to force squid to cache files when using auth ?
Hi again, I've used the following option : refresh_pattern /files/ 60 100% 70 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 -Message d'origine- De : Chris Robertson [mailto:crobert...@gci.net] Envoyé : jeudi 10 décembre 2009 22:12 À : squid-users@squid-cache.org Objet : Re: [squid-users] How to force squid to cache files when using auth ? Thomas Bergerot wrote: Hi everyone, I'm using squid to cache files inside our network. When the requests are not using authentication, the files are cached in the swap directories. I've got a software that uses basic authentication with the server to download files, and i noticed that Squid is not caching files when a basic auth is used in the request. Could anyone tell me if there is a way to force Squid to cache the files even when using auth in GET/PUT requests please ? Thank you very much for your help, and have a nice day :) Regards Thomas See the ignore-private option to cache_control (http://www.squid-cache.org/Doc/config/refresh_pattern/). Be aware that requests for cached content will NOT be prompted for authentication. Chris
Re: [squid-users] How to force squid to cache files when using auth ?
Thomas Bergerot wrote: Hi everyone, I'm using squid to cache files inside our network. When the requests are not using authentication, the files are cached in the swap directories. I've got a software that uses basic authentication with the server to download files, and i noticed that Squid is not caching files when a basic auth is used in the request. Could anyone tell me if there is a way to force Squid to cache the files even when using auth in GET/PUT requests please ? Thank you very much for your help, and have a nice day :) Regards Thomas See the ignore-private option to cache_control (http://www.squid-cache.org/Doc/config/refresh_pattern/). Be aware that requests for cached content will NOT be prompted for authentication. Chris