gwmbox
03-31-2010, 03:46 AM
Hi guys
I am wanting to add expiry settings for our images, scripts, css etc and that has been done fine enough via
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
</IfModule>
But this applies the expires to everything but I need a couple of directories to not be added to the expiry as images are replaced often. So how do I tell it to exclude image in X directory?
Thanks
I am wanting to add expiry settings for our images, scripts, css etc and that has been done fine enough via
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
</IfModule>
But this applies the expires to everything but I need a couple of directories to not be added to the expiry as images are replaced often. So how do I tell it to exclude image in X directory?
Thanks