RegistrationOptions Class

The options of ServiceWorkerContainer.Register (https://w3c.github.io/ServiceWorker/#dictdef-registrationoptions).

public sealed class RegistrationOptions

Constructors

NameDescription
RegistrationOptions()

RegistrationOptions()

public RegistrationOptions()

No documentation is available.

Properties

NameDescription
ScopeGets the scope URL, relative to the API base URL, or null for the directory of the script.
TypeGets the type of the script.
UpdateViaCacheGets whether the HTTP cache is used by the update checks.

Gets the scope URL, relative to the API base URL, or null for the directory of the script.

public string? Scope { get; init; }

Gets the type of the script.

public WorkerType Type { get; init; }

UpdateViaCache

ServiceWorkerTypes.cs

Gets whether the HTTP cache is used by the update checks.

public ServiceWorkerUpdateViaCache UpdateViaCache { get; init; }