Tuesday 10 March 2009 11:12:44 am
Hi, As I can't set the Cache-Control header for the html document, I've changed the index.php file like this:
470 // send header information
471 $headerList = array( 'Expires' => 'Mon, 26 Jul 1997 05:00:00 GMT',
472 'Last-Modified' => gmdate( 'D, d M Y H:i:s' ) . ' GMT',
473 'Cache-Control' => 'max-age=1800',
474 'Pragma' => ' ',
Now, the answer of the server looks like this:
HTTP/1.x 200 OK
Date: Tue, 10 Mar 2009 17:33:00 GMT
...
Expires: Wed, 22 Jun 2011 01:33:00 GMT
Cache-Control: max-age=1800
Last-Modified: Tue, 10 Mar 2009 17:33:00 GMT
...
...and there is a copy of the html document in the cache of Firefox (I can edit it). But each time I reload the page, Firefox downlaod the document on the server (statut code 200 OK) and never use the copy in its cache. Is there really a way to cache the HTML document? Pascal
Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish
|