You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently a lifecycle method triggered by RequestWrapper.match() called cacheWillMatch(), which gives a plugin the opportunity to inspect the cached response that would normally be returned for a given request, and either return null if the cached response isn't valid (because it's expired, for instance) or return an alternative response instead (like a 206 Partial Content version of it).
There's been some internal discussion about renaming this method in the next major semver release, with cachedResponseWillBeUsed() as the current leading candidate. If folks have alternative suggestions, add them here.
The text was updated successfully, but these errors were encountered:
Library Affected:
workbox-runtime-caching
There's currently a lifecycle method triggered by
RequestWrapper.match()
calledcacheWillMatch()
, which gives a plugin the opportunity to inspect the cached response that would normally be returned for a given request, and either returnnull
if the cached response isn't valid (because it's expired, for instance) or return an alternative response instead (like a 206 Partial Content version of it).There's been some internal discussion about renaming this method in the next major semver release, with
cachedResponseWillBeUsed()
as the current leading candidate. If folks have alternative suggestions, add them here.The text was updated successfully, but these errors were encountered: