WebPagetest Forums
Cache static content - 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 (/showthread.php?tid=13354)



Cache static content - dannymichel - 11-06-2014 12:11 PM

I'm using w3totalcache and self hosted cdn. Im am not sure how to fix this cache static content thing.
any ideas?
thanks in advance.
http://www.webpagetest.org/result/141106_64_5GP/1/performance_optimization/#cache_static_content


RE: Cache static content - JMTC - 11-07-2014 05:20 AM

In the .htaccess file (if your host respect those expire headers). According to the WPT test you're also using CF, so you can also set these with a page rule (see http://blog.cloudflare.com/edge-cache-expire-ttl-easiest-way-to-override/).


RE: Cache static content - pmeenan - 11-12-2014 07:25 AM

Just be careful to not cache content that you don't want to. Images are usually relatively safe but script, css and html usually require some level of file versioning and care to prevent doing bad things. w3totalcache has "browser cache" settings which should help for enabling a bunch of that.