-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Vercel ISR support doesn't seem to work/is very flaky #9182
Comments
* fix: move catch-all-regex to the end part of #9182 * changelog
@zusorio I am still unable to invalidate the cache manualy by calling the Sveltekit route with HEADER x-prerender-revalidate=TOKEN How can I force the route to be regenerated? |
Same here. It is very flaky, if you always GET the page, a HTTP HEAD with the HEADER works, but if you POST, you can´t revalidate oder refresh the cache. |
Describe the bug
I followed the docs to set up vercel ISR in a test project, however that didn't seem to actually do anything.
Another project uses
prerender = 'auto'
but this seemed to make vercel cache the request indefinitely.I then tried to make a reproduction with both no
prerender
andprerender = 'auto'
in different routes, but with both routes present neither of them are cached.I also have another more complex project that I originally wanted to use ISR for. In that project despite an identical setup ISR seems to work properly for the index route with
prerender = 'auto'
. However, it doesn't work for any API routes.Reproduction
Not caching anything without prerender
https://sveltekit-isr-repro-682h0lk7v-zusor.vercel.app/
https://github.com/zusorio/sveltekit-isr-repro/tree/3d05c49c3f90e7c2a551e5b7b48de36a007e0cc5
Caching indefinitely with prerender = 'auto'
https://sveltekit-isr-repro-pmrfpyg4k-zusor.vercel.app/
https://github.com/zusorio/sveltekit-isr-repro/tree/38cc230ee687ea1be8b39eeaa0e6e7f149fb6f08
Caching nothing with and without prerender = 'auto'
https://sveltekit-isr-repro.vercel.app/
https://github.com/zusorio/sveltekit-isr-repro
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: