[KLUG Members] Squid "no_cache"

Adam Tauno Williams members@kalamazoolinux.org
Tue, 21 Jan 2003 13:04:06 -0500


>>>>How do I *not* cache certain sites, for example the whole family uses Web
>>>>based Email: http://www.fastmail.fm or http://www.mail.lycos.com
>>>Why?  It would seem like those are the sites you DO want to cache, so
>>>everyone can share the same cache and improve your internet speed.
>>I don't think links like this should be cached...
http://www.fastmail.fm/mail2/~ad20xs4dabcv18f0ttgbcd65jj244432211155789/?MLS=MR-@0,3857,;SMB-MF-SF=4_1;SMR-Part=;SMR-MsgId=3857;SMR-FM=1;SMB-CF=119494;MSignal=MR-DelMsg@0,3856
>>This is an *actual* Email to me.

If a specific page shouldn't be cached, the application should send a pragma
no-cache tag in the header and neither squid nor your local browser will cache
the page.  I'd just leave it up to fastmail.fm to mark the appropriate pages.

If you think squid is causing you problems just set your browser not to use the
proxy for that URL, most modern browsers provide that option.  If you want to
centralize the configuration of what sites use the proxy and what one's don't,
you should be able to do that via a wpad or pac file.

>IF squid caches likes like that), it wouldn't waste much disk space, and
>it wouldn't hurt anything since the session ID is in the URL, and won't
>be duplicated among other users.

You can also set the minium size of objects to cache.