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

From: 老邪 <swansun95_at_gmail.com>
Date: Thu, 22 Apr 2010 17:51:59 +0800

hi, all
     that problem is resolved. it's due to there was a setting for
header_access , that discard the expires header.
     thanks!

On Thu, Apr 22, 2010 at 12:55 PM, Ѩ <swansun95_at_gmail.com> wrote:
> 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 - 09:52:08 MDT

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