Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unclear documentation for Vercel adapter ISR bypassToken (__prerender_bypass) #13659

Open
@Leftium

Description

@Leftium

Describe the bug

It is not clear how the Vercel ISR cache can be bypassed:

A random token that can be provided in the URL to bypass the cached version of the asset, by requesting the asset with a __prerender_bypass= cookie.

  • Can a URL param be added? (Which would result in the Vercel adapter injecting the __prerender_bypass cookie)
  • Is GET/HEAD request with header x-prerender-revalidate: <token> a second, alternate method of bypassing the ISR cache?

It seems:

  • https://example.com/?__prerender_bypass=<token> does not work (may be convenient if it did work)
  • The __prerender_bypass=<token> cookie does work
  • Did not test x-prerender-revalidate (assuming it probably works)

Reproduction

Severity

annoyance

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationpkg:adapter-vercelPertaining to the Vercel adapter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions