Hi, For a particular PHP installation I wanted to turn off all 'Cache-Control' headers, because 'cache_limiter=nocache' requires a user to explicitly resubmit form data every time and 'cache_limiter=private' would cache forms too often. However the current cache_limiter implementation does not have an option to do so. So I wrote a trivial patch against PHP 4.2.3 that adds value 'none' to session.cache_limiter. When set PHP replies do not include 'Cach-Control' or 'Pragma: nocache' headers, just a 'Last-Modified' one.
Please consider merging it, from browsing the mailing list I get the impression that other people may find the 'none' option useful too. Thanks, Bastiaan Bakker LifeLine Networks bv Index: ext/session/session.c =================================================================== RCS file: /opt/cvs/sourceroot/php/php-4.2.3/ext/session/session.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 session.c --- ext/session/session.c 7 Oct 2002 13:59:02 -0000 1.1.1.1 +++ ext/session/session.c 7 Oct 2002 15:49:23 -0000 @@ -700,11 +700,17 @@ ADD_COOKIE("Pragma: no-cache"); } +CACHE_LIMITER_FUNC(none) +{ + last_modified(TSRMLS_C); +} + static php_session_cache_limiter_t php_session_cache_limiters[] = { CACHE_LIMITER(public) CACHE_LIMITER(private) CACHE_LIMITER(private_no_expire) CACHE_LIMITER(nocache) + CACHE_LIMITER(none) {0} }; -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php