Re: Making a PHP Script "Very" Cache Friendly
| From: | Wendell Brown | Date: | Mon, 02 Jun 2003 13:19:33 +0000 |
| Subject: | Re: Making a PHP Script "Very" Cache Friendly | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149789@lists.php.net to get a copy of this message | ||
On Mon, 02 Jun 2003 02:38:51 -0400, Gerard Samuel wrote:
>For the life of me, according to the output of ethereal (a network
>sniffer), this file is always fetched from the server.
Have you looked at what is actually coming out in the headers? If not,
grab a copy of Sam Spade for windows (http://www.samspade.org/ssw/).
It will let you see the actual headers the browser (and cache) sees.
Here is what it shows on one of my php sites:
HTTP/1.1 200 OK
Date: Mon, 02 Jun 2003 13:16:39 GMT
Server: Apache/1.3.27 (Unix) PHP/4.2.3
Cache-Control: max-age=86400
Expires: Tue, 03 Jun 2003 13:16:39 GMT
Last-Modified: Fri, 30 May 2003 16:33:19 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
Some of these headers (Cache-Control for instance) are configured in my
.htaccess file but others are manually sent using header("");