Re: Creating ETags
| From: | Rasmus Lerdorf | Date: | Fri, 04 Aug 2000 11:16:26 +0000 |
| Subject: | Re: Creating ETags | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10113@lists.php.net to get a copy of this message | ||
On Fri, 4 Aug 2000, John McKerrell wrote:
> moshe wrote:
> >
> > before u send any non-header information:
> >
> > Header("Etag: $etag-value\r\n"")
>
> Yes, I've now realised that the value's not that important, but I would
> prefer an automatic way of getting PHP to output it for all scripts, is
> this possible?
> John
Yes, this is possible. In your httpd.conf file do this:
For PHP 3: php3_last_modified 1
For PHP 4: php_value last_modified 1
That will check the timestamp on the script being executed and set the
Last-Modified header and also set the etag header.
-Rasmus