I’ve been getting very inconsistent caching results and I’m trying to understand the issue.
when i run my test against the elb directly, i get this result:
http://www.webpagetest.org/result/160205_72_ZM/
but when i run a test against the live site (which is using fastly as it’s cdn) i get horrible results:
http://www.webpagetest.org/result/160205_5A_2M7/
I used to get consistent caching results regardless (minus the cdn check of course). I recently have been tweaking my cache times, in order to increase my score, setting my maxage for images to a year since they almost never change.
In the first, non CDN, result you can see those are now properly cached as you’d expect.
In the second, Fastly result, you can see that they inexplicably have a cache time of 3.9 days? Nowhere am I setting the cache time to 3.9 days. And why only the /images folder, the /fonts folder also has a maxage of 1 year. Is this a Fastly default, if so, why are they no longer respecting my cache headers here?
The only other difference re: caching that I’ve made here beyond upping /image and /font maxage is I’m now setting stale-while-revalidate and stale-if-error times. Is it possible that webpagetest just doesn’t support those features yet?
Thanks