overriding mod_proxy headers with mod_expires

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx
                                   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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux