New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 677852 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Mar 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

view-source: caches 302 redirect and content even when normal page visit wouldn't

Reported by teo8...@gmail.com, Jan 2 2017

Issue description

UserAgent: 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
 

Comment 1 by ajha@chromium.org, Jan 4 2017

Labels: Needs-Triage-M55
Labels: Needs-Feedback
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.
677852_Jan_4
489 KB View Download

Comment 3 by teo8...@gmail.com, Jan 4 2017

Yeah well, that doesn't mean a lot. 
What about steps 3 and 4?

Comment 4 by alph@chromium.org, Jan 10 2017

Components: -Platform>DevTools Blink>ViewSource
Project Member

Comment 5 by sheriffbot@chromium.org, Jan 17 2017

Labels: -Needs-Feedback Needs-Review
Owner: durga.behera@chromium.org
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
Labels: -Needs-Review Needs-Feedback
Owner: ----
Thanks for the feedback, would you mind helping with a screen cast if possible to further triage it.

Comment 7 by teo8...@gmail.com, 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?
Project Member

Comment 8 by sheriffbot@chromium.org, Jan 26 2017

Labels: -Needs-Feedback Needs-Review
Owner: durga.behera@chromium.org
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

Comment 9 by cda...@chromium.org, Mar 13 2017

Cleaning up "Needs-Review" label as we are not using this label for triage. Ref  bug 684919 
Labels: -Needs-Review
Project Member

Comment 11 by sheriffbot@chromium.org, Mar 15 2018

Status: Archived (was: Unconfirmed)
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