1
I would like to better understand how this module works, in particular I leave as an example what is in the Root folder of one of the sites I handle:
<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 part
ExpiresDefault
sets the default expiration of all items(gif, png, css, js..) ? - So on my.htaccess I am overwriting the default value that was previously defined (when I set expire to png, jpeg.. specifically) ?
- If I start the mod_expires . htaccess module in a subfolder, same empty, it overwrites what was written in the . htaccess module which stays in the root folder?
- It is true that if I use parameters in the URL, I will be forcing caching
again, for example, this:
index.html
, be different from thatindex.html?1234
?