Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to let squid export the "expires" header?

7 views
Skip to first unread message

swansun

unread,
Apr 9, 2010, 5:56:32 AM4/9/10
to
hi, everyone
i have a web server(apache 2.0.x) and a squid(2.6) in front of the
web as the reverse proxy.
in the web server, i have set up the mod_expires module to export the
Expires HTTP header as 1 year. and it works,
here is the http header info
----------------------
[shell]# curl -D- -o /dev/null http://www.mydomain.com/test.png
HTTP/1.1 200 OK
Date: Fri, 09 Apr 2010 07:52:21 GMT
Server: Apache/2.0.53 (Unix) mod_perl/1.99_14 Perl/v5.8.5 PHP/5.0.3
mod_ssl/2.0.53 OpenSSL/0.9.7e mod_fastcgi/mod_fastcgi-SNAP-0404142202
Last-Modified: Thu, 06 Apr 2006 12:03:53 GMT
Accept-Ranges: bytes
Content-Length: 512
Cache-Control: max-age=31536000, public
Expires: Sat, 09 Apr 2011 07:52:21 GMT
Content-Type: image/png
-----------------------

but if i'm put the squid in front of the web, then i visit the
same URL, then i got the different header
------------------
[moran]$ curl -D- -o /dev/null http://www.mydomain.com/test.png
HTTP/1.0 200 OK
Date: Fri, 09 Apr 2010 08:56:00 GMT
Server: Apache/2.0.53 (Unix) mod_perl/1.99_14 Perl/v5.8.5 PHP/5.0.3
mod_ssl/2.0.53 OpenSSL/0.9.7e mod_fastcgi/mod_fastcgi-SNAP-0404142202
Last-Modified: Thu, 06 Apr 2006 12:03:53 GMT
Accept-Ranges: bytes
Content-Length: 512
Content-Type: image/png
Age: 1025
X-Cache: HIT from squid.mydomain.com
Via: 1.0 squid.mydomain.com:80 (squid/2.6.STABLE23)
Connection: close
-----------------------

the pic loads correctly, but jut the "expires" header is gone.
it's not the thing i expect. how can i set up squid to put the
"expires" header back?
any ideas? thank you~~

swansun

unread,
Apr 21, 2010, 6:09:51 AM4/21/10
to
hi,
it's me again, any one has any tips for this issue?
thanks~

On Apr 9, 5:56 pm, swansun <swansu...@gmail.com> wrote:
> hi, everyone
>     i have a web server(apache 2.0.x) and a squid(2.6) in front of the
> web as the reverse proxy.
> in the web server, i have set up the mod_expires module to export the
> Expires HTTP header as 1 year. and it works,
>     here is the http header info
> ----------------------

> [shell]# curl -D- -o /dev/nullhttp://www.mydomain.com/test.png

0 new messages