Skip to content

aio: option to blow away the service worker #16897

Closed

Description

@petebacondarwin
No description provided.

Activity

  1. petebacondarwin commented on May 22, 2017

    @petebacondarwin
    ContributorAuthor

    This might be useful reading: http://stackoverflow.com/questions/33986976/how-can-i-remove-a-buggy-service-worker-or-implement-a-kill-switch which also links to this information http://stackoverflow.com/questions/38843970/service-worker-javascript-update-frequency-every-24-hours/38854905#38854905

    The long and the short of it is that we can replace the service-worker.js on our server at any time and browser will update to this new file at the point the user navigates to our site with the following caching restriction: the old service-worker.js file will be cached for either the length of time specified in the caching headers or 24 hours, whichever is shorter.

    So the only thing we need to do right now is:

    a) set our caching period to a length of time <24 hours that we deem as appropriate. I suggest 60 mins.
    b) create a noop-service-worker.js file that we can apply quickly in an emergency that effectively disables the service worker.

  2. petebacondarwin commented on May 26, 2017

    @petebacondarwin
    ContributorAuthor

    a) The default cache time for Firebase files is 3600 sec, so the worker-basic.min.js is already set to expire every hour.

  3. added a commit that references this issue on May 26, 2017
    6949510
  4. added a commit that references this issue on Aug 11, 2017
    62e14ce
  5. added a commit that references this issue on Aug 28, 2017
    b229d8f
  6. angular-automatic-lock-bot commented on Sep 11, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions