Skip to content

@vite-pwa/workbox-swkit/recipes ​

Package

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

Function Summary ​

NameDescription
googleFontsCache An implementation of the [Google fonts]https://developers.google.com/web/tools/workbox/guides/common-recipes#google_fonts caching recipe
imageCache An implementation of the [image caching recipe]https://developers.google.com/web/tools/workbox/guides/common-recipes#caching_images
offlineFallback An implementation of the [comprehensive fallbacks recipe]https://developers.google.com/web/tools/workbox/guides/advanced-recipes#comprehensive_fallbacks. Be sure to include the fallbacks in your precache injection
pageCache An implementation of a page caching recipe with a network timeout
staticResourceCache An implementation of the [CSS and JavaScript files recipe]https://developers.google.com/web/tools/workbox/guides/common-recipes#cache_css_and_javascript_files
warmStrategyCache

Interface Summary ​

TypeDescription
GoogleFontCacheOptions
ImageCacheOptions
OfflineFallbackOptions
PageCacheOptions
StaticResourceOptions
WarmStrategyCacheOptions

Released under the MIT License.