Re: Search Engines and Last-Modified Header

From: Date: Mon, 23 Jun 2003 19:08:12 +0000
Subject: Re: Search Engines and Last-Modified Header
Groups: php.general 
Request: Send a blank email to php-general+get-152531@lists.php.net to get a copy of this message
On Wed, 28 May 2003 10:23:22 -0500, Wendell Brown wrote: >To force all of the pages (both pseudo-static and dynamic) to generate >a "Last-Modified" header, I set up prepend.php script which is >configured as a directory level (.htaccess) parm to auto_prepend_file. As appears to be the usual case with php, I have found that I was doing things the HARD way. While an auto_prepend will work, there is a Apache specific ini setting that will turn on automatic generation of the Last-Modified AND ETAG headers! If you change the default value for "last_modified" to on in your php.in or add the following to your .htaccess file, php will generate both a default Last-Modified header AND an ETAG: php_flag last_modified on Anyone care to comment on whether or not there is a down side to having an etag on a dynamic page related to search engines (or caches for that matter).... Here is the link - NOTE that the docs do NOT mention the ETAG, but my testing is that this ini change also enables that functionality as well! http://us3.php.net/manual/en/ref.apache.php

« previous php.general (#152531) next »