khalyomede / gridsome-plugin-service-worker

Registers a service worker and apply your file strategies to let you build a PWA.
https://npmjs.com/package/gridsome-plugin-service-worker
MIT License
8 stars 2 forks source link

fixed a bug where cacheFirst tried to use cacheOnly #14

Closed JoeTodes closed 3 years ago

JoeTodes commented 3 years ago

This should fix #10 where using cacheFirst would generate an error that cacheOnly is not defined.

It seems some code from addCacheOnlyToServiceWorkerContent() was copied into the cacheFirst version without changing it.

khalyomede commented 3 years ago

Good catch @JoeTodes 💪 thanks a lot for the time