New issue
Advanced search Search tips

Issue 603277 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 3
Type: Bug



Sign in to add a comment

Force update on reload can cause reload loop

Project Member Reported by falken@chromium.org, Apr 13 2016

Issue description

Copying from  issue 500428 . Probably not high priority. Maybe a better UX is for force update on reload to take effect only for UI initiated reload (Reload button, F5, etc). Now it seems to take place for window.location.reload() or navigations.

Comment 20 by jakearchibald@chromium.org, Oct 5, 2015
https://jakearchibald.github.io/isserviceworkerready/demos/force-reload-loop/

With "force update" checked, the above ends up in a reload loop.

Reloading once the controller changes is a pattern I use in a couple of projects. The non-reduced flow is:

* Show a message to the user such as "Update available, reload? Yes / No"
* If the user clicks yes, postmessage to the waiting SW asking it to skipWaiting
* On controller change, reload
 

Comment 1 by falken@chromium.org, Apr 13 2016

Summary: Force update on reload can cause reload loop (was: Force reload on update can cause reload loop)

Comment 2 by falken@chromium.org, Apr 22 2016

Components: -Platform>Apps>DevTools Platform>DevTools
Owner: hhli@chromium.org
We should be able to do that - devtools is handling the F5 / reload button reload on its own, so there should be a way to only trigger force update upon those commands.

Sign in to add a comment