Cache-Control: no-cache and browser back button problem

From: Date: Mon, 11 Feb 2002 07:51:20 +0000
Subject: Cache-Control: no-cache and browser back button problem
Groups: php.general 
Request: Send a blank email to php-general+get-84235@lists.php.net to get a copy of this message
why does the cache control header generated by php (under session_cache_limiter = nocache) needs to have no-store? It makes pressing Back in the browser requests a new version of the page (which is unwanted in some situations, e.g. while filling form and needs to edit a few fields before re-submitting). Also, when I am editing the script and had a fatal error (like a PHP syntax error), the stored version of the page by the browser is always the one with a fatal error, and I need to always refresh to get the current version (I am using a 'Never check for newer versions of pages' in my browser, which is fine for most circumstances). Can I remove the 'no-store' parameter from the generated Cache-Control header, without resorting to session_cache_limiter = private (since this also have some Refresh problems in IE)? -- sh

« previous php.general (#84235) next »