Skip to content

Feature request: detect browser prefetch #497

@feliperaul

Description

@feliperaul

It would be nice to have browser.prefetch? that detects if the request is coming from a Omnibar prefetch that modern browsers perform.

This stackoverflow answer (https://stackoverflow.com/questions/9852257/http-header-to-detect-a-preload-request-by-google-chrome) tells that each browser vendor sends different headers, being:

  • Chrome: Purpose: prefetch
  • Firefox: X-moz: prefetch
  • Safari: X-Purpose: preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions