Web: People: Excluded caching of temp userPhotos
This commit is contained in:
parent
db0539a8fa
commit
5298c1d27c
@ -23,7 +23,9 @@ if ("function" === typeof importScripts) {
|
||||
// Image caching
|
||||
workbox.routing.registerRoute(
|
||||
// Cache image files.
|
||||
({ request }) => request.destination === "image",
|
||||
({ request, url }) =>
|
||||
request.destination === "image" &&
|
||||
url.pathname.indexOf("userPhotos/temp") === -1,
|
||||
// Use the cache if it's available.
|
||||
new workbox.strategies.CacheFirst({
|
||||
// Use a custom cache name.
|
||||
|
Loading…
Reference in New Issue
Block a user