WebPagetest Forums
Any suggestions to improve my caching ? - 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: Any suggestions to improve my caching ? (/showthread.php?tid=12961)



Any suggestions to improve my caching ? - a.chakery - 05-09-2014 12:30 AM

Hello,

After a long time I decided to work on one of my old websites ...

here is my results :
http://www.webpagetest.org/result/140508_SV_M61/

Unfortunately it seems that I should work more on my caching...

I would appreciate any help regarding this issue.

Please note that I really don't want to use browser caching since I have no control over it afterwards .

Thank you again


RE: Any suggestions to improve my caching ? - Anton Chigurh - 05-09-2014 02:06 AM

(05-09-2014 12:30 AM)a.chakery Wrote:  Please note that I really don't want to use browser caching since I have no control over it afterwards .
In that case, you're never going to get any better of a grade than F for leverage browser caching of static assets.


RE: Any suggestions to improve my caching ? - GreenGecko - 05-09-2014 08:45 AM

Given that you've taken the approach that everything is to be delivered in a single file, with no inclusions, then no, you don't want to cache anything if it's got dynamic content.

The site is delivered compressed and visually complete in 0.4s, so really needs no further work done on it!


RE: Any suggestions to improve my caching ? - a.chakery - 05-09-2014 08:51 AM

Thank you GreenGecko and Anton for your replies...

Really appreciate it.


RE: Any suggestions to improve my caching ? - pmeenan - 05-14-2014 11:58 PM

Actually, you should use no-cache for your cache-control and pragma instead of private. Private just prevents proxies from caching it but browsers will still use heuristics and cache the file for a while. If it really is dynamic then no-cache will get it to behave the way you want and WPT will also not detect it as a "static" resource and you'll get an A (or N/A)


RE: Any suggestions to improve my caching ? - a.chakery - 05-15-2014 04:14 AM

Thank you pmeenan ,
Now generally what do you suggest ? I mean do I leave my website as it is now or do the 1 week browser caching ?


RE: Any suggestions to improve my caching ? - pmeenan - 05-15-2014 04:53 AM

Up to you. If you want to allow for a 1-week cache then it would be worthwhile to let cloudflare, maxcdn or some other CDN edge-cache it for you which could make it available globally in < 100ms or so but that's kind of a micro-optimization at this point.