False-positive cache-control records in report
|
10-17-2017, 07:07 AM
Post: #1
|
|||
|
|||
False-positive cache-control records in report
I'm observing discrepancy in my reports specific to cache-control response headers.
Some resources are listed as "FAILED - (No max-age or expires)" in Cache section of the report, but I do see this header displayed in Details section for the given sub-request Sample report: https://www.webpagetest.org/result/17101...030135e99/ Following resource is listed as "FAILED - (No max-age or expires)": Code: FAILED - (No max-age or expires) - https://www.toyota.com/imgix/content/homepage/img/explore/ToyotaRacing.png?w=552&dpr=1&q=80&fm=jpg&lossless=false&fit=max&cs=strip&bg=fff& But here is what is listed in the Details section: Code: Request 11: https://www.toyota.com/imgix/content/homepage/img/explore/ToyotaRacing.png?w=552&dpr=1&q=80&fm=jpg&lossless=false&fit=max&cs=strip&bg=fff& There are like ten resources like this listed in that report. Please help me to interpret results properly. What is actually wrong with it? |
|||
10-18-2017, 07:53 AM
Post: #2
|
|||
|
|||
RE: False-positive cache-control records in report
I do see your confusion, as I can verify the response headers on those images are "cache-control: public,max-age=604800"
One thing to try is to do a repeat-view test. When you do that, is the image actually re-downloaded again? If so, then there must be something off in the cloudfront settings. If not, then perhaps this is a bug within WPT. |
|||
10-19-2017, 06:19 AM
Post: #3
|
|||
|
|||
RE: False-positive cache-control records in report
Thank you for responding! That was very good suggestion. Luckily, that run was configured to hit on First view and the Repeat view, so I checked it out, and... the http response code was 304 - definitely cached
![]() Code: :status: 304 So, I'm tending to feel that it is WPT bug. |
|||
10-20-2017, 09:36 AM
Post: #4
|
|||
|
|||
RE: False-positive cache-control records in report
Interesting, glad you can see that your headers are working as expected. If it bugs you enough, you can file issues with WPT here: https://github.com/WPO-Foundation/webpagetest/issues
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)