Classes

Method

getDefaultCacheName

static

getDefaultCacheName(input) returns string

The default cache name, used by RequestWrapper when there's no name provided.

It combines a constant prefix with the service worker scope, ensuring that multiple service workers used on the same origin will have different default caches.

Calling this method without any parameters will return workbox-runtime-caching-<service worker scope>.

If you pass in a cacheId, it will be prepended, returning: <cacheid>-workbox-runtime-caching-<service worker scope>.

Parameter

input

Object

Returns

string Returns the default cache name used based on optional inputs.