Urara-Blog/node_modules/.pnpm-store/v3/files/4a/bb05df939ed897b0d363430238d5b59040915606bbb7982b3e492c4d177f48352e64d9025b89242cdc5e6da4eabfdaf02242463031596f4f9713a18dc57e94
2022-08-14 01:14:53 +08:00

21 lines
925 B
Text

import '../_version.js';
/**
* Cleans up incompatible precaches that were created by older versions of
* Workbox, by a service worker registered under the current scope.
*
* This is meant to be called as part of the `activate` event.
*
* This should be safe to use as long as you don't include `substringToFind`
* (defaulting to `-precache-`) in your non-precache cache names.
*
* @param {string} currentPrecacheName The cache name currently in use for
* precaching. This cache won't be deleted.
* @param {string} [substringToFind='-precache-'] Cache names which include this
* substring will be deleted (excluding `currentPrecacheName`).
* @return {Array<string>} A list of all the cache names that were deleted.
*
* @private
* @memberof workbox-precaching
*/
declare const deleteOutdatedCaches: (currentPrecacheName: string, substringToFind?: string) => Promise<string[]>;
export { deleteOutdatedCaches };