Issue metadata
Sign in to add a comment
|
Resources are being served in offline mode
Reported by
davidssc...@gmail.com,
Oct 5 2017
|
||||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Steps to reproduce the problem: 1. Open a web page & dev tools 2. Select "offline" mode in Network or Application > Service Workers 3. Navigate within the site - resources are still served despite "offline mode" What is the expected behavior? In offline mode, resources should not be served (assuming there are no active service workers) What went wrong? Offline mode is not simulating being offline - resources are still served. Did this work before? Yes 60 Chrome version: 61.0.3163.100 Channel: stable OS Version: OS X 10.12.6 Flash Version: Shockwave Flash 27.0 r0
,
Oct 5 2017
I have the same issue on Mac in stable Chrome (61.0.3163.100), but offline mode in DevTools seems to be working fine when I try it on Chrome Canary on Mac (63.0.3233.0) and on Chrome Stable on Linux CentOS (61.0.3163.100). Works on: Chrome Canary on Mac Chrome Version: 63.0.3233.0 Channel: canary OS Version OS X 10.12.6 Stable Chrome on Linux CentOS Chrome Version: 61.0.3163.100 Channel: stable OS Version: 7.3.1611
,
Oct 6 2017
,
Oct 6 2017
To be more specific, only some of the assets are still retrieved while in offline mode, like the HTML files. Many are still blocked.
,
Oct 6 2017
Is this issue related to Service Worker?
,
Oct 6 2017
This issue affects service workers, but doesn't seem to be caused by them. Try enabling offline mode on a new tab, then search the web normally even on websites without service workers. While some assets won't load, you can still access most of the content. On Linux and Mac Canary, the same behavior just results in an "There is no Internet connection" page. Service workers seem to be able to access resources while in offline mode in a similar way, but that doesn't seem to be the root cause?
,
Oct 6 2017
What kind of content is loaded? Could you please attach the screen shot of DevTools Network tab? Isn't the service worker serving the content from CacheStorage?
,
Oct 6 2017
What happens if you disable chrome://flags/#browser-side-navigation?
,
Oct 6 2017
,
Oct 6 2017
Disabling browser side navigation fixes the issue on Chrome Stable on Mac (61.0.3163.100), showing the correct behavior when in offline mode. Great! For comparison, when browser side navigation is explicitly set to enabled on Chrome Canary on Mac (63.0.3233.0), offline mode still has the correct behavior. I included the screenshot of the incorrect offline mode behavior in Chrome Stable on Mac (61.0.3163.100) with browser side navigation set to enabled/default for reference. Note the 200 response for the HTML. I could also post offline mode now working correctly with browser side navigation set to disabled, if that would be helpful. Thanks for your help so far!
,
Oct 6 2017
Thank you. It is an issue of PlzNavigate (browser side navigation). I can reproduce the bug in 61.0.3163.100. But I can't in 62.0.3202.45. I think it is fixed in M62.
,
Oct 6 2017
Great! We'll have our team try to see if this fix in 62.0.3202.45 extends out to service workers and update this issue with our findings.
,
Oct 6 2017
I bisected. This issue was solved by 25dc5157098d393d8ed7263a8780c3f2471840ae which landed in 62.0.3179.0.
,
Nov 2 2017
Hello again, I've just re-tested in Chrome 62.0.3202.75 and am still encountering errors, although they are different. General web navigations fail in offline mode, as expected, but network requests made from within a service worker are successful. So for example, in offline mode, if I navigate to a resource and the service worker intercepts that request and replaces it with its own request to the network (not the cache), then it is successful. As an aside, it doesn't seem to matter if the requested resources are cached or not.
,
Nov 2 2017
The bug of subresource loading was fixed in 63.0.3237.0. So please use M63. See crbug.com/769972 . |
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 Deleted