Bug 54608

Summary: Support an option to allow page caching when using DB Sessions
Product: Apache httpd-2 Reporter: Chris <chris>
Component: mod_session_dbdAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: enhancement    
Priority: P2    
Version: 2.4-HEAD   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch

Description Chris 2013-02-25 18:51:13 UTC
Created attachment 29990 [details]
Patch

Currently, when using sessions the Cache-Control flag gets set to no-cache automatically. This needs to be configurable since page caching is still needed when using sessions in some scenarios.
Comment 1 Chris 2013-02-25 18:57:10 UTC
Option in config:

SessionDBCache On
Comment 2 Graham Leggett 2013-10-13 13:59:32 UTC
Switching caching off completely is broken, as it signals to shared caches that they may cache the session ID.

Other valid options though are "private" where the browser can cache the page but not shared caches, and "private=<header>" and "no-cache=<header>".

Maybe this should specify the Cache-Control header explicitly, instead of "on" or "off".