NavigationPreloadManager
The NavigationPreloadManager
interface of the Service Worker API provides methods for managing the preloading of resources in parallel with service worker bootup. Available only in secure contexts.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The getState()
method of the NavigationPreloadManager interface returns a Promise that resolves to an object with properties that indicate whether preload is enabled and what value will be sent in the Service-Worker-Navigation-Preload HTTP header.
Link copied to clipboard
Link copied to clipboard
The setHeaderValue()
method of the NavigationPreloadManager interface sets the value of the Service-Worker-Navigation-Preload header that will be sent with requests resulting from a Window/fetch operation made during service worker navigation preloading.
Link copied to clipboard