Is there any way to update file(s) in the service worker if the last modified date time is changed? I have some images that change every 2-3 days and want to let the service worker know to update them.
I separated these images in the cache directory in the service worker as well.
registerRoute(
({ url }) => url.origin === self.location.origin && url.pathname.startsWith("/images/changing-images/"),
new StaleWhileRevalidate({
cacheName: `changing-images-${cacheSuffix}`,
matchOptions: {
ignoreSearch: true,
ignoreVary: true,
},
})
);