WebPagetest Forums
Caching warnings are completely wrong - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Caching warnings are completely wrong (/showthread.php?tid=16206)

Caching warnings are completely wrong - DisgruntledGoat - 10-01-2020 06:35 AM

I've been running some tests and keep getting a low score for "cache static content". When I look at the details it shows several images as only being cached for a few days (3.1 days, 2.6 days, etc).

Here's one example: https://webpagetest.org/performance_optimization.php?test=200930_DiTE_5747aa8c329b2382b53d9a097748231e&run=1#cache_static_content

But those images are all cached for a long time. Checking the Response headers on the waterfall chart shows my correct setting of 30 days:

Quote:cache-control: public, max-age=2592000

I also double checked on other tools and the caching is fine. Is there something wrong with WPT? Or is there some other reason it thinks the caching is so short?

RE: Caching warnings are completely wrong - jmorahan - 10-06-2020 04:37 AM

I think it's subtracting the value of the Age header from Cache-control's max-age. I don't think that's correct - afaik, Age just tells you how long the proxy (Cloudflare in this case) has had it cached already - nothing to do with the how long the browser will cache it. But I could be wrong.