Currently, if you have a precache file with no cacheId the parameters sent to the SW will have {"cacheId": ""}. In sw-toolbox-setup.js we check only that params.has('cacheId'), and not that it is a truthy value. Therefore we construct a new default cacheName with the empty string as a base.
Currently, if you have a precache file with no cacheId the parameters sent to the SW will have
{"cacheId": ""}
. In sw-toolbox-setup.js we check only thatparams.has('cacheId')
, and not that it is a truthy value. Therefore we construct a new defaultcacheName
with the empty string as a base.