I have a .htaccess in my document root, with the following:
ExpiresActive On ExpiresDefault A0 <FilesMatch "\\.(gif|jpe?g|png)$"> ExpiresDefault A86400 </FilesMatch>
However, for a particular sub directory, /images/avatar, I only want the the age to be 300 seconds. Thus, I created another .htaccess under /images/avatar with the following:
<IfModule mod_expires.c> ExpiresActive On ExpiresDefault A300 </IfModule>
With the above settings, I fail to enforce expiry time of 300 seconds for the files under /images/avatar. However if I remove the .htaccess in root, the 300 seconds rule will be implied.
Any help? Thanks