Safari's Developer Tools Misreports the Cached Object as Non-Cached
| Originator: | pganti | ||
| Number: | rdar://16329574 | Date Originated: | 03/14/2014 |
| Status: | Open | Resolved: | |
| Product: | Safari - DevTools | Product Version: | 7.0.2 |
| Classification: | Reproducible: | Yes |
Repeated requests for a cacheable resource does not result in the correct entry for "Cached" attribute and moreover the HTTP Status code should not be 200. 1. You need Safari with Developer tools 2. Try loading the Google Logo and Apple Sprite that contains the logo https://www.google.com/images/srpr/logo11w.png http://www.apple.com/global/nav/images/globalnav_text.png 3. Make repeated requests (like atleast 3) by clicking Enter 4. Watch the "Cached" Column to be No and HTTP Status Code to be 200 Expected Results: The expected result is the Dev Tools Column for "Cached" should say "Yes" and the HTTP Response Code should NOT be 200 but 304 (as subsequent requests should fire a IMS request) Actual Results: Cached is set to "No" HTTP Status responds as "200" Version: All my repros/tests are on Version 7.0.2 (9537.74.9) Notes: Please note the RTT between the laptop and the site in question. Usually its on the order of 20-30ms However the object latency as reported by Safari DevTools is usually on the order of 5 ms. I setup Charles Proxy on my mac to view if there is an outstanding request made but I do not see any. For completeness I also setup a proxy and do NOT see a HTTP request being made
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!