Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Leftium opened this issue Apr 1, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation pkg:adapter-vercel Pertaining to the Vercel adapter

Comments

@Leftium
Copy link

Leftium commented Apr 1, 2025

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

@droplab
Copy link

droplab commented Apr 2, 2025

A GET request with header x-prerender-revalidate: <token> does not work in numerous tests I've attempted.

@dummdidumm dummdidumm added documentation Improvements or additions to documentation pkg:adapter-vercel Pertaining to the Vercel adapter labels Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation pkg:adapter-vercel Pertaining to the Vercel adapter
Projects
None yet
Development

No branches or pull requests

3 participants