On 07/04/2011 11:52, Linda Walsh wrote:

Amos Jeffries wrote:

Marked explicitly as "private" - aka cannot be cached by any middleware proxy (such as Squid) which may send it to other users. May be cached by a personal cache such as the browser storage.
---
    But I don't have to log in.

More importantly, wouldn't setting the 'ignore-private' in the refresh pattern override that?


you can use the squid config directive
http://www.squid-cache.org/Doc/config/refresh_pattern/

from there:

                ignore-private ignores any ``Cache-control: private''
                headers received from a server. Doing this VIOLATES
                the HTTP standard. Enabling this feature could make you
                liable for problems which it causes.

                ignore-auth caches responses to requests with authorization,
                as if the originserver had sent ``Cache-control: public''
                in the response header. Doing this VIOLATES the HTTP standard.
                Enabling this feature could make you liable for problems which
                it causes.


the store log for this object is:
1302171454.780 RELEASE -1 FFFFFFFF 16CE6B732B07D8D24F6FC9E614841B63 200 1302171409 -1 -1 application/pdf 5051083/5051083 GET http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=54432


after adding :
refresh_pattern -i ^http://www\.lsi\.com/.*AssetMgr\.aspx\?asset.* 4320 70% 10080 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-store ignore-private

i got ... (using 3.2.0.5)

1302171749.093 713 ---IP--- TCP_MEM_HIT/200 5051501 GET http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=54432 - HIER_NONE/- application/pdf [Host: www.lsi.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 6.0; rv:2.0) Gecko/20100101 Firefox/4.0\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nKeep-Alive: 115\r\nConnection: keep-alive\r\nCookie: ASP.NET_SessionId=3bfti1j2lwqdmjfldf1iypzh\r\n] [HTTP/1.1 200 OK\r\nDate: Thu, 07 Apr 2011 10:20:55 GMT\r\nServer: Microsoft-IIS/6.0\r\nX-Powered-By: ASP.NET\r\nX-AspNet-Version: 2.0.50727\r\nContent-Disposition: attachment; filename=JBOD_Enclosures_Guide_080310.pdf\r\nCache-Control: private\r\nContent-Type: application/pdf\r\nContent-Length: 5051083\r\n\r]

Reply via email to