httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Mac <ian.mcg...@zynetix.com>
Subject Re: [users@httpd] Cache Control
Date Tue, 30 Jan 2007 17:23:33 GMT

Thanks Gregor,

I will try this. I am currently trying mod_expires but nothing seems to be
different when I look on Ethereal. Ian.



Gregor Schneider wrote:
> 
> Just a shot from the hip:
> 
> # load modules sentenvif and headers - adapt the path!!!
> #
> LoadModule setenvif_module /usr/lib/apache2/modules/mod_setenvif.so
> LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
> #
> # define grafix depending on the extension:
> SetEnvIf Request_URI "\.(gif)|(jpg)$" object_is_gfx
> #
> # be sure no pragama-directive is sent (pragma: no-cache):
> Header unset Pragma
> #
> # no caching for anything:
> Header set Cache-Control "no-cache,no-store,max-age=0,s-maxage=0"
> #
> # however, if it's a grafix-file, cache it for 24h:
> Header set Cache-Control "public, s-maxage=172800, max-age=172800"
> env=object_is_gfx
> 
> hth
> 
> Greg
> -- 
> what's puzzlin' you, is the nature of my game
> gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
> gpgp-key available @ http://pgpkeys.pca.dfn.de:11371
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Cache-Control-tf3142748.html#a8713713
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message