view-source: caches 302 redirect and content even when normal page visit wouldn't
Reported by
teo8...@gmail.com,
Jan 2 2017
|
||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 Steps to reproduce the problem: 1. visit a page such as http://whatever.com which responds with a 302, and whose response headers are such that neither the redirect nor the final content should be cached 2. visit it again with the developer tools open to verify that all the requests are done again and nothing is served from disc cache 3. do "view page source" 4. Now refresh the view-source:http://whatever.com page, and/or copy the url and paste it in the address bar again, with the devtools open What is the expected behavior? Just like the regular visit to the page doesn't caches anything, so shouldn't the visit to view-source:... Particularly the 302 redirect shouldn't be cached. What went wrong? both the 302 response and the source content are served from cached, which can be verified by (a) looking at the devtools (it reads "from disk cache"), and (b) by having the server no longer respond with a redirect and change the contents of the response, and observe that Chrome still follows the bogus cached redirect and serves the old cached content. Did this work before? N/A Chrome version: 55.0.2883.87 Channel: stable OS Version: Flash Version: Shockwave Flash 24.0 r0
,
Jan 4 2017
Thanks for the report, could you please take a look into the attached screen shot where the 302 response is not "from disk cache" and there are few things which are from "from disk cache" but not for 302 on Ubuntu 14.04 with 55.0.2883.87.
,
Jan 4 2017
Yeah well, that doesn't mean a lot. What about steps 3 and 4?
,
Jan 10 2017
,
Jan 17 2017
Thank you for providing more feedback. Adding requester "durga.behera@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jan 18 2017
Thanks for the feedback, would you mind helping with a screen cast if possible to further triage it.
,
Jan 18 2017
If you can recommend a quick-to-install screen grabber for Ubuntu that works seamlessly I may give it a try. What's the part of the steps to reproduce that is not clear, though?
,
Jan 26 2017
Thank you for providing more feedback. Adding requester "durga.behera@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Mar 13 2017
Cleaning up "Needs-Review" label as we are not using this label for triage. Ref bug 684919
,
Mar 13 2017
,
Mar 15 2018
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by ajha@chromium.org
, Jan 4 2017