summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-03-26 00:43:56 +0000
committerSascha Schumann <sas@php.net>2000-03-26 00:43:56 +0000
commit04daa555aa857965de9b53e98d6eda34c1e0db46 (patch)
tree9690a0254d024a929bf0b9992ab4c74ec9112149 /ext
parentb880fb5bcc99d7cf4216f7780c736679812e10b0 (diff)
downloadphp-git-04daa555aa857965de9b53e98d6eda34c1e0db46.tar.gz
Add MSIE 5-specific Cache-Control fields
Diffstat (limited to 'ext')
-rw-r--r--ext/session/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/session/session.c b/ext/session/session.c
index a7c644881e..9f4040ad51 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -526,7 +526,7 @@ CACHE_LIMITER_FUNC(private)
char buf[MAX_STR + 1];
ADD_COOKIE("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
- sprintf(buf, "Cache-Control: private, max-age=%d", PS(cache_expire) * 60);
+ sprintf(buf, "Cache-Control: private, max-age=%d, pre-check=%d", PS(cache_expire) * 60, PS(cache_expire) * 60);
ADD_COOKIE(buf);
last_modified();
@@ -535,8 +535,8 @@ CACHE_LIMITER_FUNC(private)
CACHE_LIMITER_FUNC(nocache)
{
ADD_COOKIE("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
- /* For HTTP/1.1 conforming clients */
- ADD_COOKIE("Cache-Control: no-cache");
+ /* For HTTP/1.1 conforming clients and the rest (MSIE 5) */
+ ADD_COOKIE("Cache-Control: no-cache, post-check=0, pre-check=0");
/* For HTTP/1.0 conforming clients */
ADD_COOKIE("Pragma: no-cache");
}