Summary: | mod_cache caching Set-Cookie headers | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Rüdiger Plüm <ruediger.pluem> |
Component: | mod_cache | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | CLOSED FIXED | ||
Severity: | enhancement | Keywords: | PatchAvailable |
Priority: | P1 | ||
Version: | 2.0.50 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 23687 | ||
Bug Blocks: | |||
Attachments: |
CacheStoreCookies Patch
Patch against 2.0.51 More general approach patch against 2.0.52. Patch against 2.0.53 |
Description
Rüdiger Plüm
2004-07-29 23:12:07 UTC
Hi, meanwhile I wrote a patch to mod_cache / mod_disk_cache / mod_mem_cache that introduces the new server config directive CacheStoreCookies. By default this directive is set to "On" thus leaving everything as it currently behaves in 2.0.50. Setting CacheStoreCookies to "Off" prevents the Set-Cookie headers from being stored by the cache. This way I can configure the behaviour that I need in my special case. Regards Rüdiger Plüm Created attachment 12295 [details]
CacheStoreCookies Patch
My patch has a little different implementation approach compared to the patch of 23687. Also the patch for the documentation is currently missing. I will add this when I find time or someone gets interested in my version of the patch. Created attachment 12877 [details]
Patch against 2.0.51
Created attachment 13097 [details]
More general approach patch against 2.0.52.
After a discussion on the developer list the new patch has a more general approach and replaces the previous CacheStoreCookies directive with the more general CacheIgnoreHeaders directive which allows to prevent arbitrary headers from being stored, not just cookies. CacheIgnoreHeaders is now in 2.1 and will be incorporated in a future release. Thanks! Created attachment 14434 [details]
Patch against 2.0.53
|