NavigationPreloadManager Class

The navigation preload of a registration (https://w3c.github.io/ServiceWorker/#navigationpreloadmanager).

public sealed class NavigationPreloadManager

Methods

NameDescription
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).

Disables the navigation preload (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-disable).

public Task Disable()

Enables the navigation preload (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-enable).

public Task Enable()

Returns the navigation preload state (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-getstate).

public Task<NavigationPreloadState> GetState()

SetHeaderValue(string)

ServiceWorker.cs

Sets the value of the Service-Worker-Navigation-Preload header (https://w3c.github.io/ServiceWorker/#dom-navigationpreloadmanager-setheadervalue).

public Task SetHeaderValue(string value)