Skip to content

Request.isReloadNavigation #1360

@hjanuschka

Description

@hjanuschka

Specification title

Request.isReloadNavigation

Specification or proposal URL (if available)

https://fetch.spec.whatwg.org/#dom-request-isreloadnavigation

Explainer URL (if available)

No response

Proposal author(s)

No response

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Request/isReloadNavigation

Caniuse.com URL

No response

Bugzilla URL

No response

Mozillians who can provide input

No response

WebKit standards-position

WebKit/standards-positions#620

Other information

This is a read-only boolean attribute on the Fetch API's Request interface that indicates whether the request was initiated by a reload navigation (e.g., the browser refresh button, location.reload(), or history.go(0)). It is primarily useful within a Service Worker's FetchEvent handler for implementing cache strategies that differentiate between normal navigations and reloads.

The attribute is already defined in the Fetch spec and has existing WPT coverage. Chromium implementation: https://chromium-review.googlesource.com/c/chromium/src/+/7137783 (expected to land behind a flag soon).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs assignees

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions