com php-src: Remove MSIE 5-specific Cache-Control fields.: ext/session/session.c

From: Date: Tue, 12 May 2015 07:53:17 +0000
Subject: com php-src: Remove MSIE 5-specific Cache-Control fields.: ext/session/session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86668@lists.php.net to get a copy of this message
Commit: 413d23f6f0d5e56bda3c01d3951590c05ed4d7fc Author: Josef Šimánek <josef.simanek@gmail.com> Sun, 12 Apr 2015 22:35:57 +0200 Committer: Julien Pauli <jpauli@php.net> Tue, 12 May 2015 09:53:17 +0200 Parents: 0be37148ad3853ef0fa70f3aa7c4d0a2a46b9e25 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=413d23f6f0d5e56bda3c01d3951590c05ed4d7fc Log: Remove MSIE 5-specific Cache-Control fields. reverts 04daa55 Changed paths: M ext/session/session.c Diff: diff --git a/ext/session/session.c b/ext/session/session.c index 71d4cd1..70adf8e 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -1216,7 +1216,7 @@ CACHE_LIMITER_FUNC(private_no_expire) /* {{{ */ { char buf[MAX_STR + 1]; - snprintf(buf, sizeof(buf), "Cache-Control: private, max-age=" ZEND_LONG_FMT ", pre-check=" ZEND_LONG_FMT, PS(cache_expire) * 60, PS(cache_expire) * 60); /* SAFE */ + snprintf(buf, sizeof(buf), "Cache-Control: private, max-age=" ZEND_LONG_FMT, PS(cache_expire) * 60); /* SAFE */ ADD_HEADER(buf); last_modified(); @@ -1234,8 +1234,8 @@ CACHE_LIMITER_FUNC(nocache) /* {{{ */ { ADD_HEADER("Expires: Thu, 19 Nov 1981 08:52:00 GMT"); - /* For HTTP/1.1 conforming clients and the rest (MSIE 5) */ - ADD_HEADER("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); + /* For HTTP/1.1 conforming clients */ + ADD_HEADER("Cache-Control: no-store, no-cache, must-revalidate"); /* For HTTP/1.0 conforming clients */ ADD_HEADER("Pragma: no-cache");

« previous php.cvs (#86668) next »