I specified ExpireByType in .htaccess but I am still getting warnings.
Hi All
I am in the process of doing SEO for my Joomla site, and I ran the site through gtmetrix.com and I got the messages about some cs and js can benefit from having an expiration date. The confusing part is that I have explicitly added these directives in the .htaccess file and I know for sure I have more cs and js files than what gtmetrix singled out as the ones that need expiration date.
The portion of .htaccess pertaining to this task is listed below. Any suggestion on what I have done wrong? Or how to interpret the "suggestions" from gtmetrix? Thank you for your help!
regards,
SH
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/svg "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/x-javascript "access plus 1 week"
ExpiresByType text/js "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType image/ico "access plus 1 year"
ExpiresDefault "access plus 2 days"
## EXPIRES CACHING ##
## FAR FUTURE EXPIRATION BY HEADER ##
## ADDED on 12/22/2014 IN RESPONSE TO YSlow
## plg_expiresheaders is used in Joomla, but that plugin does not affect static file types ##
Header set Expires "Wed, 15 Apr 2020 20:00:00 GMT"
Header set Cache-Control "public"
## FAR FUTURE EXPIRATION ##