WebPagetest Forums
Cache static content FAILED (No max-age or expires) - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Cache static content FAILED (No max-age or expires) (/showthread.php?tid=14155)



Cache static content FAILED (No max-age or expires) - n3kr0 - 01-09-2016 11:12 PM

Hi there folks,
everything checks out except - Cache static content:

Leverage browser caching of static assets: 0/100
FAILED - (No max-age or expires) - http://myapp2.gethisapp.com/img/speed2.jpg
FAILED - (No max-age or expires) - http://myapp2.gethisapp.com/favicon.ico
FAILED - (No max-age or expires) - http://myapp2.gethisapp.com/img/s2.png
FAILED - (No max-age or expires) - http://myapp2.gethisapp.com/index.css
FAILED - (No max-age or expires) - http://myapp2.gethisapp.com/boilerplate.css
FAILED - (No max-age or expires) - http://myapp2.gethisapp.com/

i have used the htaccess file in a tutorial, it worked but the
Cache static content remains with this problem, here's the config:

<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript
application/javascript
</ifmodule>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType application/javascript A604800
ExpiresByType application/x-javascript A604800
ExpiresByType text/javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A604800
ExpiresByType image/x-icon A604800
ExpiresByType image/icon A604800
ExpiresByType image/jpg A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/png A604800
</IfModule>


i have being reading some other posts withthe same problem but can
figure out exactly what to change.


RE: Cache static content FAILED (No max-age or expires) - Anton Chigurh - 01-12-2016 12:56 PM

Could you post the site URL or a link to one of the WPT tests you ran?


RE: Cache static content FAILED (No max-age or expires) - avalanch - 01-14-2016 03:36 AM

You may have that code in your htaccess but make sure your expires module is enabled in your server.