Skip to content

@vite-pwa/workbox-swkit/strategies ​

Package

Declaration: @vite-pwa/workbox-swkit/strategies

Class Summary ​

TypeDescription
CacheFirst An implementation of a cache-first request strategy.
CacheOnly An implementation of a cache-only request strategy.
NetworkFirst An implementation of a network first request strategy.
NetworkOnly An implementation of a network-only request strategy.
StaleWhileRevalidate An implementation of a stale-while-revalidate request strategy.
Strategy An abstract base class that all other strategy classes must extend from:
StrategyHandler A class created every time a Strategy instance instance calls workbox-strategies.Strategy~handle or workbox-strategies.Strategy~handleAll that wraps all fetch and cache actions around plugin callbacks and keeps track of when the strategy is "done" (i.e. all added event.waitUntil() promises have resolved).

Interface Summary ​

TypeDescription
NetworkFirstOptions
NetworkOnlyOptions
StrategyOptions

Released under the MIT License.