From f5cb8002956a034bf466922df439cf89e4e12cb8 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Mon, 9 May 2022 17:50:07 +0300 Subject: [PATCH] Caching service worker (#794) * register service worker * versioning code * cleanup * cache in Prod only --- index.html | 11 ++++---- main.js | 54 ++++++------------------------------- sw.js | 68 +++++++++++++++++++++++++++++++++++++++++++++++ versioning.js | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 155 insertions(+), 51 deletions(-) create mode 100644 sw.js create mode 100644 versioning.js diff --git a/index.html b/index.html index 4071ba58..71f39eb7 100644 --- a/index.html +++ b/index.html @@ -15,6 +15,7 @@ +