applicationCache is not detecting changes to the manifest
Reported by
jossssss...@gmail.com,
May 7 2018
|
||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Navigate to an HTML page that has a manifest tag in the HTML element. 2. Ensure the site is cached. 3. Update the manifest on the server. 4. Reload the browser, and notice the noUpdate event firing after the checking event. What is the expected behavior? What went wrong? I think something is wrong in the checking function. Did this work before? N/A Chrome version: 66.0.3359.139 Channel: stable OS Version: 10.0 Flash Version:
,
May 7 2018
This might be associated with this issue: https://bugs.chromium.org/p/chromium/issues/detail?id=824762
,
May 7 2018
,
May 8 2018
@Reporter: Please provide sample URL/test file to test this issue from TE end. This would help in further triaging of the issue. Thanks!
,
May 9 2018
Setup a site with three documents, index.html, manifest.txt, and something that returns a different image on each request. The image should be embedded in the index.html, the url should be included within the manifest.txt under the cached section. Once the downloaded event fires from the applicationCache, the image should not change unless the manifest.txt changes.
,
May 9 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 11 2018
Setting up a site with three documents, index.html, manifest.txt, and something that returns a different image on each request is out of scope for ET team (...to create/setup). Hence requesting you to provide a sample test URL/File which helps us to triage the issue in a better way. Any further inputs from your end may be helpful. Thanks!
,
May 24 2018
Ok, I think I have this figured out. Prior to Chrome 66, if the comments in a manifest changed, the whole thing was flagged dirty. Now on 66, the comments are ignored. When serving my manifest file, I have the startup timestamp of the application added to a comment. As a work-around, I'm putting a junk url in the NETWORK: section. like chrome.html?98723490875 where 98723490875 is the server startup timestamp. -Josh
,
May 24 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 24 2018
"if the comments in a manifest changed, the whole thing was flagged dirty. Now on 66, the comments are ignored." There are no changes that would account for such behavior. The comparison is still a bytewise compare between the old and new manifest content. https://cs.chromium.org/chromium/src/content/browser/appcache/appcache_update_job.cc?sq=package:chromium&g=0&l=923 ... so I wouldn't be too confident about the workaround. It's likely something else going on...
,
Jun 1 2018
@Reporter:As per comment #4 and comment #8 without proper test file we couldn't test this issue. could you please provide sample URL/test file to test this issue from TE end. This would help in further triaging of the issue. Thanks!
,
Jun 16 2018
Same issue here on chrome 67. The browser fires the Application Cache NoUpdate event although the manifest has changes the comment section. I have added "Cache-Control: no-update,no-store" to the HTTP response for the manifest file, but that didn't solve the issue. Does it have something to do with the "stuck with a particular version forever" issue? [1] [1] https://developers.google.com/web/updates/2018/06/fresher-sw
,
Jun 16 2018
When the cache will not be updated forever then this bug should have the priority of a showstopper. The workaround with the junk URL in the NETWORK section didn't work. What else could we try to work around this bug?
,
Jun 16 2018
"Setting up a site with three documents, index.html, manifest.txt, and something that returns a different image on each request is out of scope for ET team" => Where is the ET team and why don't they ask Google for help? The biggest player in internet technology should be able to setup a simple webserver.
,
Jun 17 2018
Update: I have tested a lot and now I am quite sure that there is no issue with the appcache in chrome 66 and 77. My problem was just a mistake in my own code which didn't handle the appcache events correctly. I have tested on both version 66 and 67 and everything works as expected in all cases: On initial load, on reload and on update.
,
Jun 18 2018
Thanks for following up!
,
Jun 18 2018
Whooops, re-opening - that wasn't the OP.
,
Sep 21
No feedback from original poster (requested sample files) Closing pending further data. |
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by mef@chromium.org
, May 7 2018