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

From: 老邪 <swansun95_at_gmail.com>
Date: Thu, 22 Apr 2010 12:55:30 +0800

will try, thank you!!!

will update here

On Thu, Apr 22, 2010 at 12:36 PM, Jeff Pang <pangj_at_arcor.de> wrote:
> 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:55:38 MDT

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