Skip to content

Instantly share code, notes, and snippets.

@jgarber623
Last active January 29, 2016 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgarber623/e17b2bec4491db897caf to your computer and use it in GitHub Desktop.
Save jgarber623/e17b2bec4491db897caf to your computer and use it in GitHub Desktop.

Reproducing an odd bug in Firefox 44 (stable) on OS X El Capitan related to browser cache and Service Workers.

Enabled Add Ons:

With browser cache enabled

  1. Unregister Service Workers in about:serviceworkers.
  2. Visit https://whoistheorchid.com/
  3. Reload about:serviceworkers and note a registered Service Worker.
  4. File > Work Offline
  5. Browse around the site (e.g. https://whoistheorchid.com/releases) and observe site renders properly.

With browser cache disabled

  1. Unregister Service Workers in about:serviceworkers.
  2. Disable the browser's cache (I use the Web Developer Toolbar's "Disable Entire Cache" for this).
  3. Visit https://whoistheorchid.com/
  4. Reload about:serviceworkers and note a registered Service Worker.
  5. Reload https://whoistheorchid.com/ and observe garbled output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment