Bug 54608 - Support an option to allow page caching when using DB Sessions
Summary: Support an option to allow page caching when using DB Sessions
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_session_dbd (show other bugs)
Version: 2.4-HEAD
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-25 18:51 UTC by Chris
Modified: 2013-10-13 13:59 UTC (History)
0 users



Attachments
Patch (2.39 KB, application/octet-stream)
2013-02-25 18:51 UTC, Chris
Details

Note You need to log in before you can comment on or make changes to this bug.
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".