jhd Posted September 13, 2014 Share Posted September 13, 2014 Hello, In Themeconfigurator when I added a image in a hook (top,left,right,footer) the name is converted to some similar to this: wake.png To 23672e1105f049c8b801b29e639038c508d42d60_wakepng Therefore GTmetrix displays recommendations Add Expires headers F (0) 25% Server High Leverage browser caching C (73) 58% Server High The following cacheable resources have a short freshness lifetime. Specify an expiration at least one week in the future for the following resources: http://meganautic.com/modules/themeconfigurator/img/144744eb6bdb34d30fd55d581232eebe5a2e87ac_monster-towerpng (expiration not specified) Is there any ExpiresByType for a file with no extension? Best regards Link to comment Share on other sites More sharing options...
NemoPS Posted September 13, 2014 Share Posted September 13, 2014 Are images working after that? it's kind of a bug as they are supposed to have an extension. Try and fix that first (in the module), but ultimately you can try if this works ExpiresDefault "access plus 1 month" Link to comment Share on other sites More sharing options...
jhd Posted September 13, 2014 Author Share Posted September 13, 2014 Hello Nemo1, I had tried that: ExpiresDefault "access plus 1 month" But does not work and down PageSpeed Grade. I added this line: ExpiresByType image/jpg "access plus 1 month" after ExpiresByType image/jpeg "access plus 1 month" Because I was the same with images with jpg extension (not jpeg) <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" ExpiresByType application/x-font-woff "access plus 1 year" ExpiresByType application/vnd.ms-fontobject "access plus 1 year" ExpiresByType font/opentype "access plus 1 year" ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType application/x-font-ttf "access plus 1 year" ExpiresByType application/x-font-otf "access plus 1 year" </IfModule> Link to comment Share on other sites More sharing options...
Recommended Posts