Commit graph

11 commits

Author SHA1 Message Date
a13b86765b
Bumped version 2021-01-22 19:56:35 +01:00
16d84e2840 Removed rouge console.log from SW 2021-01-01 22:56:33 +01:00
1e762a65ea Removed caching of subdirectories
Subdirectories with the exception of /assets/ will not get cached by the Service Worker. A normal network fetch() will be executed.

Added scope to Service Worker register.

Added "fetchContent()" which performs a normal network fetch() and follows redirects.
2020-12-15 14:46:41 +01:00
Victor Westerlund
4a181e15e9
Closes #7 (#9)
* dev-12140843

* dev-12140844

* Update sw.js

* Update not_found.html

* Update sw.js
2020-12-14 09:00:04 +01:00
c6e4eab25f Removed joining "/" between origin and cache root 2020-12-14 08:18:30 +01:00
a81fc8f212 Corrected SW root path
Corrected path for production.

Removed "offline.txt" from cache.
2020-12-14 08:11:26 +01:00
a2f002dcad Added Service Worker for offline caching
Removed Google Analytics script.
2020-12-14 08:01:37 +01:00
9a2e937f1b Update sw.js 2020-12-09 08:08:54 +01:00
e8dd97a291 Added pattern.gif "redirect" with SW
Added placeholder 'pattern.php' script.

SW:
Added uniform version control.
'handleRequest()' is now 'fetchContent()' and automatically saves response to 'bucket' Cahce Storage (removed between SW versions)

Added uniform same-origin check with 'const origin'.

Fixed issue where "cache lookup -> fetch fallback" wouldn't actually load content from cache.
2020-12-07 07:27:40 +01:00
e30593f849 dev12060537 - ServiceWorker basic boilerplate
Added a boilerplate for a offline-first sw.

Need to add support for non-standard same-origin assets
2020-12-06 05:38:36 +01:00
c34db81cd5 Draft 2020-11-17 16:30:32 +01:00