WebPagetest Forums

Full Version: Cache static content - Help With The Code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When I tested my site I got all "A" except for the Cache Static Content which was "F".
It changed to "D" when I added the following code:

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

However I still need it to be "A".

I also have "Header set Expires":

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|bmp|js|css|swf)$">
Header set Expires "Wed, 31 Dec 2014 20:00:00 GMT"
</FilesMatch>

Any ideas where I go wrong or what do I need to change?

I'm using MaxCDN if it matters.
Thanks
Can you link to the results? If you click on the grade it will give you a list of the resources that failed - maybe it will be clear that a specific mime type failed or something like that.
Reference URL's