[squid-users] Cannot get override-expire, override-lastmod, etc. to work

From: mangpo <mangpo_at_eecs.berkeley.edu>
Date: Thu, 5 Dec 2013 18:24:42 -0800 (PST)

I'm using squid version 3.1.19, and I want to be able to serve stale pages to
the browser, so I modify squid.conf as follows.

Everything is pretty much the same as default with

*acl my_machine src <ip>
http_access allow my_machine*

and

*refresh_pattern ^http: 600000 100% 700000 override-expire override-lastmod
reload-into-ims ignore-reload ignore-no-cache ignore-private ignore-auth*

Then, I tested it using squidclient.

*squidclient http://stackoverflow.com/*

However, it always missed giving me this respond every time (except date and
last-modified are different).

HTTP/1.0 200 OK
Cache-Control: public, max-age=26
Content-Type: text/html; charset=utf-8
Expires: Fri, 06 Dec 2013 01:18:38 GMT
Last-Modified: Fri, 06 Dec 2013 01:17:38 GMT
Vary: *
X-Frame-Options: SAMEORIGIN
Date: Fri, 06 Dec 2013 01:18:11 GMT
Content-Length: 199580
X-Cache: MISS from localhost
X-Cache-Lookup: MISS from localhost:3128
Via: 1.0 localhost (squid/3.1.19)
Connection: close

Please help!

--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Cannot-get-override-expire-override-lastmod-etc-to-work-tp4663706.html
Sent from the Squid - Users mailing list archive at Nabble.com.
Received on Fri Dec 06 2013 - 02:25:26 MST

This archive was generated by hypermail 2.2.0 : Fri Dec 06 2013 - 12:00:04 MST