temp: disabling some caching for auth issue
This commit is contained in:
parent
a546792e39
commit
845836422e
@ -80,28 +80,28 @@ workbox.routing.registerRoute(
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
workbox.routing.registerRoute(
|
// workbox.routing.registerRoute(
|
||||||
({
|
// ({
|
||||||
request
|
// request
|
||||||
}) => request.mode === 'navigate',
|
// }) => request.mode === 'navigate',
|
||||||
new workbox.strategies.NetworkFirst({
|
// new workbox.strategies.NetworkFirst({
|
||||||
cacheName: 'pages',
|
// cacheName: 'pages',
|
||||||
plugins: [
|
// plugins: [
|
||||||
new workbox.cacheableResponse.CacheableResponsePlugin({
|
// new workbox.cacheableResponse.CacheableResponsePlugin({
|
||||||
statuses: [200],
|
// statuses: [200],
|
||||||
}),
|
// }),
|
||||||
],
|
// ],
|
||||||
}),
|
// }),
|
||||||
);
|
// );
|
||||||
|
|
||||||
workbox.routing.registerRoute(() => true,
|
// workbox.routing.registerRoute(() => true,
|
||||||
new workbox.strategies.StaleWhileRevalidate({
|
// new workbox.strategies.StaleWhileRevalidate({
|
||||||
cacheName: 'apis',
|
// cacheName: 'apis',
|
||||||
plugins: [
|
// plugins: [
|
||||||
new workbox.broadcastUpdate.BroadcastUpdatePlugin(),
|
// new workbox.broadcastUpdate.BroadcastUpdatePlugin(),
|
||||||
new workbox.expiration.ExpirationPlugin({
|
// new workbox.expiration.ExpirationPlugin({
|
||||||
maxAgeSeconds: 60 * 60 * 24 * 30,
|
// maxAgeSeconds: 60 * 60 * 24 * 30,
|
||||||
}),
|
// }),
|
||||||
],
|
// ],
|
||||||
})
|
// })
|
||||||
);
|
// );
|
||||||
|
Loading…
Reference in New Issue
Block a user