serwist
Version:
A Swiss Army knife for service workers.
18 lines • 841 B
TypeScript
/**
* Cleans up incompatible precaches that were created by older versions of
* Serwist, 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 currentPrecacheName The cache name currently in use for
* precaching. This cache won't be deleted.
* @param substringToFind Cache names which include this
* substring will be deleted (excluding `currentPrecacheName`).
* @returns A list of all the cache names that were deleted.
* @private
*/
export declare const deleteOutdatedCaches: (currentPrecacheName: string, substringToFind?: string) => Promise<string[]>;
//# sourceMappingURL=deleteOutdatedCaches.d.ts.map