Search squid archive

Re: how to set up expires header in squid?

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

 



On Thu, Apr 22, 2010 at 12:28 PM, 老邪 <swansun95@xxxxxxxxx> wrote:

>    the pic loads correctly, but as you can see,  the "expires" header
> is gone (compare with visit apache directly).

Squid normally doesn't discard the output headers from original server.
max-age header should be there, like 126's:

$ curl -D- -o /dev/null www.126.com
HTTP/1.0 200 OK
Date: Thu, 22 Apr 2010 04:17:04 GMT
Server: Apache
Accept-Ranges: bytes
Cache-Control: max-age=3600
Expires: Thu, 22 Apr 2010 05:17:04 GMT
Vary: Accept-Encoding
Content-Length: 26281
Content-Type: text/html; charset=GB2312
Age: 946
X-Cache: HIT from mcache.163.com
Connection: close


So you may both check your httpd.conf to see if mod_expire handle the
http 1.0 request correctly since squid forward the request with
http/1.0 protocal.


-- 
Jeff Pang
http://home.arcor.de/pangj/


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

  Powered by Linux