Duplicating a tab reuses cached document even when it set not to be cached
Reported by
jon.rim...@logicalglue.com,
Jan 5 2018
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Open a page from a server that sends a cache-control header of no-cache or max-age=0 for the document. 2. Make a change to the document HTML on the server. 3. Duplicate the tab. What is the expected behavior? Since the document is configured not to be cached, the duplicated tab should load a fresh version from the server. What went wrong? The browser reuses the document HTML from the original tab, as if the document as set to be cached. Did this work before? N/A Chrome version: 63.0.3239.84 Channel: n/a OS Version: OS X 10.13.2 Flash Version:
,
Jan 5 2018
Yes, that does seem to be the case, the navigation type is TYPE_BACK_FORWARD. It does seem strange to me. That type is supposed to represent that a history traversal operation[1]. I don't really see how cloning a tab fits that description. It seems like you're creating a whole new thing, and should get a refreshed document as part of it. Our use-case is that we supply some initialisation data to our single-page application through a JSON blob that's emitted on the root document. It helps the app know if the user is logged in while it initialises. We have a situation where the user can open the app, login, navigate around for a while, then duplicate the tab. The init data in the new tab tells that app they're still logged out, so they get redirected to the login page, not the resource they were looking at. Oh well, I can think of a few workarounds. [1] https://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface
,
Jan 5 2018
Cloning a tab should clone the contents of the top, no? It's not "open this page in another window", but "duplicate this tab and its contents". Reloading the page may result in a tab with different contents. Ideally, we'd just copy the current page and all of its state (loaded images, css, subresources, form state, current state of the document, etc), and not even go to the disk cache.
,
Feb 6 2018
[Mac triage] Based on the discussion so far, I'm going to mark this WontFix. Feel free to reopen if that wasn't right. |
||
►
Sign in to add a comment |
||
Comment 1 by mmenke@chromium.org
, Jan 5 2018