Mod expires: Difference between revisions

From EggeWiki
m (New page: My Apache2 mod_expires headers: <pre> <IfModule mod_expires.c> ExpiresActive On ExpiresDefault A86400 ExpiresByType image/x-icon A2592000 ExpiresByType application/x-javascript A2...)
 
mNo edit summary
 
Line 18: Line 18:
</IfModule>
</IfModule>
</pre>
</pre>
Hint:  You need to use '''--enable-expires''' when configuring httpd in order to use [http://httpd.apache.org/docs/2.0/mod/mod_expires.html mod_expires].

Latest revision as of 02:09, 22 May 2008

My Apache2 mod_expires headers:

<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault A86400        
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A900
</IfModule>

Hint: You need to use --enable-expires when configuring httpd in order to use mod_expires.