NavigationPreloadManager Class
The navigation preload of a registration (https://w3c.github.io/ServiceWorker/#navigationpreloadmanager).
public sealed class NavigationPreloadManagerMethods
| Name | Description |
|---|---|
| Disable() | Disables the navigation preload (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-disable). |
| Enable() | Enables the navigation preload (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-enable). |
| GetState() | Returns the navigation preload state (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-getstate). |
| SetHeaderValue(string) | Sets the value of the Service-Worker-Navigation-Preload header (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-setheadervalue). |
Disable()
ServiceWorker.csDisables the navigation preload (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-disable).
public Task Disable()Enable()
ServiceWorker.csEnables the navigation preload (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-enable).
public Task Enable()GetState()
ServiceWorker.csReturns the navigation preload state (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-getstate).
public Task<NavigationPreloadState> GetState()SetHeaderValue(string)
ServiceWorker.csSets the value of the Service-Worker-Navigation-Preload header (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-setheadervalue).