You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by WHIRLYCOTT <ph...@whirlycott.com> on 2008/07/16 16:37:56 UTC

[users@httpd] overriding mod_proxy headers with mod_expires

I have Apache 2.2.3 going against a servlet engine.  I have some  
static content that is hosted by the servlet engine (css, jpegs,  
etc.).  Whenever a request without a JSESSIONID cookie hits the  
servlet engine, the servlet engine sends back a Cache-control: no- 
cache header and an Expires header specifying the epoch (i.e. Jan 1  
1970) along with a Set-Cookie header that contains a new JSESSIONID  
cookie.

What I want to do is configure mod_expires (and/or mod_headers) to  
effectively ignore what my servlet engine says and override the  
Expires and Cache-control headers with something far in the future and  
remove the Set-Cookie header that originates on the servlet engine.

With mod_headers, I can remove the Set-Cookie header.  In fact, with  
mod_headers, I can pretty much do what I want except use mod_expires  
lovely syntax for specifying expiration dates (i.e. "access plus 30  
days"), which is fairly important to me.

So am I missing something or is it indeed the case that I cannot make  
mod_expires override what is coming back from the proxied request?

phil.

--
                                    Whirlycott
                                    Philip Jacob
                                    phil@whirlycott.com
                                    http://www.whirlycott.com/phil/





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org