Search squid archive

Re: Cannot get override-expire, override-lastmod, etc. to work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux