-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expiration not working - no way to ignore vary header #2206
Comments
In fact it seems to make no difference if I call |
Thanks for the suggestion. I think it may make sense to add this as a configuration option on the expiration plugin. Perhaps something like: new ExpirationPlugin({
maxEntries: 100,
deleteOptions: {
ignoreVary: true,
},
}); @jeffposnick what do you think? And in terms of naming, would you prefer |
Sure, that makes sense. The underlying web platform I'm not sure if this would make the cut for v5.0.0, or whether it would be something we'd add in the following minor/patch release. |
By default, the workbox-expiration plugin will not expire cache entries which include a `Vary` header in the response. This means that cached entries can build up until the browser storage quota is hit. This commit introduces the `ignoreVary: true` option, so that deletion is performed correctly. This will only apply going forward, so this commit also bumps the cache version and deletes the old caches. Ref GoogleChrome/workbox#2206
By default, the workbox-expiration plugin will not expire cache entries which include a `Vary` header in the response. This means that cached entries can build up until the browser storage quota is hit. This commit introduces the `ignoreVary: true` option, so that deletion is performed correctly. This will only apply going forward, so this commit also bumps the cache version and deletes the old caches. Ref GoogleChrome/workbox#2206
By default, the workbox-expiration plugin will not expire cache entries which include a `Vary` header in the response. This means that cached entries can build up until the browser storage quota is hit. This commit introduces the `ignoreVary: true` option, so that deletion is performed correctly. This will only apply going forward, so this commit also bumps the cache version and deletes the old caches. Ref GoogleChrome/workbox#2206
By default, the workbox-expiration plugin will not expire cache entries which include a `Vary` header in the response. This means that cached entries can build up until the browser storage quota is hit. This commit introduces the `ignoreVary: true` option, so that deletion is performed correctly. This will only apply going forward, so this commit also bumps the cache version and deletes the old caches. Ref GoogleChrome/workbox#2206
Library Affected:
workbox-sw I think
Browser & Platform:
Chrome 76.0.3809.100
Issue or Feature Request Description:
I'm not sure if this is an issue with my configuration.
I am seeing a message like
Expired 1 entry and removed it from the 'module-resources' cache.
in my console indicating that the entry should be removed from the cache. However it seem thatCacheExpiration.mjs
is callingcache.delete()
with the absolute URL (with https and domain name) whereas the cache key is the relative URL (without the https and domain name).Service worker (generated/injected by Webpack plugin):
The
cache-entries
DB contains the absolute URLs. The names in themodule-resources
cache storage are all relative URLs.Is this user error or a bug? I have also noticed that adding a
^
to the start of the RegExp makes it not match, which seems contrary to what the documentation says for same origins.The text was updated successfully, but these errors were encountered: