Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "window/install"

Index

Functions

Object literals

Functions

install

  • Installs the service worker, prefetches any URLs specified in prefetchURLs and watches all links whose href attribute matches one of the specified prefetchPatterns. When a matching link is visible in the viewport, the destination URL will be prefetched and added to the cache.

    Parameters

    Returns Promise<void>

Object literals

Const defaults

defaults: object

cacheHost

cacheHost: undefined = undefined

forcePrefetchRatio

forcePrefetchRatio: number = 0

includeCacheMisses

includeCacheMisses: boolean = false

Generated using TypeDoc