I would like to understand better how this module works, in particular I leave as an example what is in the Root folder of one of the sites I manage:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType text/css "access 1 month"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>
- the
ExpiresDefault
defines the default expiration of all items (gif, png, css, js ..)? - So in my.htaccess I'm overwriting the default value that was defined above (when I set expire to png, jpeg .. specifically)?
- If I start the module mod_expires .htaccess in a subfolder, even empty, it overrides what was written in the .htaccess module that Is it in the root folder?
- It's true that if I use parameters in the URL, I'll be forcing the cache
again, for example, this:
index.html
, be different from thatindex.html?1234
?