Re: Creating ETags

From: Date: Fri, 04 Aug 2000 11:33:39 +0000
Subject: Re: Creating ETags
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10115@lists.php.net to get a copy of this message
> I'm having problems with my site because we've got .html files set up > as PHP scripts. We might get to change this but I still need to know how > to send ETags with PHP. At the moment it would probably be best if we > could set it to output ETags with every PHP document although if there's > a method of outputting the header oneself I would also be interested to > hear it, > I hope you can help, and I'm sorry if this has been asked before but I > couldn't see it I would add this to your httpd.conf: <Files "\.html"> php_value last_modified 1 </Files> This will check the last modification time of the .html files parsed by PHP and set both the Last-Modified and the ETag headers. You could of course set it for everything parsed by PHP by leaving out the <Files> </Files> tags, but you might want to have .php files not send these and .html files send them. That's how I have done things in the past to distinguish between stuff I wanted cached and stuff I didn't. -Rasmus

« previous php.general (#10115) next »