httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arthur Kerpician" <art...@tomrad.ro>
Subject [users@httpd] expires problem
Date Fri, 10 Jan 2003 15:32:31 GMT
Hi,
I'm running Apache 2.0.35 with mod_expires on. In httpd.conf i have:
<VirtualHost virtual.server.com:80>
    ServerAdmin admin@server.com
    DocumentRoot /path/to/site/files
    ServerName virtual.server.com
    ExpiresActive On
    ExpiresByType text/php A1
    ExpiresByType image/gif A1
    ExpiresByType image/jpg A1
    .....
</VirtualHost>

This was supposed to tell any web browser that gif, jpg and php files expire 1 second after
the user accessed that resource. Besides that, every php page has this header:

header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); 
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); 
header("Cache-Control: no-cache, no-store, must-revalidate");

Still, IE6 doesn't refresh the page when the php content is changed, specially with phpBB2
2.0.3 forums.
I'd like to disable browser caching for this particular virtual server.

Thanks

Arthur K.

Mime
View raw message