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

2010-04-21 Thread 老邪
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, when i visit the apache directly, here is the http header info -

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

2010-04-21 Thread Jeff Pang
On Thu, Apr 22, 2010 at 12:28 PM, 老邪 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 /

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

2010-04-21 Thread 老邪
will try, thank you!!! will update here On Thu, Apr 22, 2010 at 12:36 PM, Jeff Pang wrote: > On Thu, Apr 22, 2010 at 12:28 PM, 老邪 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

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

2010-04-22 Thread 老邪
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, 老邪 wrote: > will try, thank you!!! > > will update here > > On Thu, Apr 22, 2010 at 12:36 PM, Jeff Pang wrote: >> On Thu, Apr