Closed
Description
Versions
Angular CLI: 6.0.0-rc.4
Node: 9.3.0
OS: win32 x64
Angular: 6.0.0-rc.5
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.5.6
@angular-devkit/build-angular 0.5.6
@angular-devkit/build-optimizer 0.5.6
@angular-devkit/core 0.5.6
@angular-devkit/schematics 0.5.6
@angular/cli 6.0.0-rc.4
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.0.0-rc.4
@schematics/angular 0.5.6
@schematics/update 0.5.6
rxjs 6.0.0-uncanny-rc.7
typescript 2.7.2
webpack 4.5.0
Repro steps
git clone https://github.com/GaryB432/angular-pwa
cd angular-pwa
git fetch origin
git checkout -b test origin/v6
npm install
ng build --prod
docker build -t issue-repro .
docker run -d -p 8080:80 issue-repro
visit http://localhost:8080 and reload/clear until the sw registers
Observed behavior
Chrome Dev Tools shows
- IndexedDB is empty
- many caches but all empty save one
Desired behavior
I expected IndexedDB
and Cache Storage
to contain some entries like in 1.7
Mention any other details that might be useful (optional)
I notice ngsw.json
is quite different but I believe it used to contain the hashed names.
- why so many caches? What is their purpose?
- How to make use of
safety-worker
? I want to build a 'kill-switch' and I suppose that is safety-worker's purpose. Is a kill-switch already built-intongsw.worker.js
?