Re: [squid-users] how to set up expires header in squid?

From: Jeff Pang <pangj_at_arcor.de>
Date: Thu, 22 Apr 2010 12:36:00 +0800

On Thu, Apr 22, 2010 at 12:28 PM, 老邪 <swansun95_at_gmail.com> 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/
Received on Thu Apr 22 2010 - 04:36:08 MDT

This archive was generated by hypermail 2.2.0 : Thu Apr 22 2010 - 12:00:05 MDT