mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-03 01:16:14 +03:00
Change caching strategy for images.
This commit is contained in:
parent
8448bb60b6
commit
daaf47426e
@ -30,7 +30,10 @@ workbox.routing.registerRoute(
|
||||
);
|
||||
workbox.routing.registerRoute(
|
||||
/\.(?:png|gif|jpg|jpeg|svg)$/,
|
||||
new workbox.strategies.CacheFirst({ cacheName: "images", plugins: [] }),
|
||||
new workbox.strategies.StaleWhileRevalidate({
|
||||
cacheName: "images",
|
||||
plugins: []
|
||||
}),
|
||||
"GET"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user