On 6/12/2013 3:24 p.m., mangpo wrote:
> 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: *
This object varies depending on at least one factor outside of HTTP
protocol. It cannot be cached.
Amos
Received on Fri Dec 06 2013 - 05:07:05 MST
This archive was generated by hypermail 2.2.0 : Fri Dec 06 2013 - 12:00:04 MST