From b2bc596209ec6d2d6a57a79674fd7bf8a5b66e56 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 10 Jan 2023 17:08:10 +0800 Subject: [PATCH] StaleWhileRevalidate is still there! --- public/sw.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/sw.js b/public/sw.js index 999e12c..17ded60 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,7 +1,11 @@ import { CacheableResponsePlugin } from 'workbox-cacheable-response'; import { ExpirationPlugin } from 'workbox-expiration'; import { RegExpRoute, registerRoute, Route } from 'workbox-routing'; -import { CacheFirst, NetworkFirst } from 'workbox-strategies'; +import { + CacheFirst, + NetworkFirst, + StaleWhileRevalidate, +} from 'workbox-strategies'; self.__WB_DISABLE_DEV_LOGS = true;