Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "window/install"

Index

Functions

Object literals

Functions

install

  • install(options?: Partial<InstallOptions>): void
  • 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

    • Optional options: Partial<InstallOptions>

    Returns void

Object literals

Const defaults

defaults: object

includeCacheMisses

includeCacheMisses: boolean = false

Generated using TypeDoc