Forum Moderators: coopster
HTTP/1.1 200 OK
Date: Thu, 08 May 2003 03:28:12 GMT
Server: Apache/2.0.45 (Win32) PHP/4.3.0
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.0
Vary: Accept-Language,User-Agent,Accept-Encoding
Expires:
Cache-Control: private, proxy-revalidate
Pragma:
Content-Language: zh-cn
ETag: "ada6b62797550f1f4712a893276bebe2"
Content-Encoding: gzip
Content-Length: 133
MyHeader: D=110158
Content-Type: text/html; charset=gb2312
===================
GET /test/test.php HTTP/1.1
Accept: */*
Accept-Language: xml,zh-cn;q=0.8,en-us;q=0.5,zh;q=0.3
Accept-Encoding: gzip, deflate
If-None-Match: "f3a8488db4bed04e0a9a42b185b6cdf2"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Host: www.our-sky.com-
Connection: Keep-Alive
Cookie: a=b
HTTP/1.1 200 OK
Date: Thu, 08 May 2003 03:31:34 GMT
Server: Apache/2.0.45 (Win32) PHP/4.3.0
Accept-Ranges: bytes
X-Powered-By: PHP/4.3.0
ETag: "f3a8488db4bed04e0a9a42b185b6cdf2"
Content-Length: 3384
MyHeader: D=10014
Content-Type: text/html
=========
the first one, ie did not send back ETag as If-None-Match
but the second one did
i tried to change headers, but get no definite effect
===========================
GET /test/test.php HTTP/1.1
Accept: */*
Accept-Language: xml,zh-cn;q=0.8,en-us;q=0.5,zh;q=0.3
Accept-Encoding: gzip, deflate
If-Modified-Since: Fri, 09 May 2003 04:14:21 GMT; length=7
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.3))
Host: www.our-sky.com-
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Fri, 09 May 2003 04:14:22 GMT
Server: Apache/2.0.45 (Win32) PHP/4.3.2-RC2
X-Powered-By: PHP/4.3.2-RC2
ETag: "7ac66c0f148de9519b8bd264312c4d64"
Last-Modified: Fri, 09 May 2003 04:14:22 GMT
Content-Encoding: gzip
Transfer-Encoding: chunked
Content-Type: text/html
===========================
without gzip and after 2 refresh:
<?php
$c = "abcdefg";
$etag = '"' . md5($c) . '"';
header("ETag: $etag");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// $c = gzencode($c, 3); header("Content-Encoding: gzip");
echo $c;
?>
===========================
GET /test/test.php HTTP/1.1
Accept: */*
Accept-Language: xml,zh-cn;q=0.8,en-us;q=0.5,zh;q=0.3
Accept-Encoding: gzip, deflate
If-Modified-Since: Fri, 09 May 2003 04:15:11 GMT
If-None-Match: "7ac66c0f148de9519b8bd264312c4d64"
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; (R1 1.3))
Host: www.our-sky.com-
Connection: Keep-Alive
HTTP/1.1 200 OK
Date: Fri, 09 May 2003 04:15:13 GMT
Server: Apache/2.0.45 (Win32) PHP/4.3.2-RC2
X-Powered-By: PHP/4.3.2-RC2
ETag: "7ac66c0f148de9519b8bd264312c4d64"
Last-Modified: Fri, 09 May 2003 04:15:13 GMT
Transfer-Encoding: chunked
Content-Type: text/html
===========================
how do u think of this result?