-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Crash on cached page load w/ cloudflare-pages #3728
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
Comments
Confirmed that this is still the case with the current version and the worker environment. As far as I can tell (it's tricky, because I can't figure out how to deobfuscate the line numbers in the stack trace) the offending line is this one: kit/packages/kit/src/runtime/server/page/load_node.js Lines 189 to 193 in d4ec813
You can't use |
Will close issue, as the bug isn't reproducible after the latest fix from @Rich-Harris. |
It looks like this patch is breaking
Replacing the override to set |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Summary
A page that is configured to be cached and deployed to Cloudflare Pages will crash on load with a 500 (see attached log in this report).
This is most likely a bug with Cloudflare Pages, as
credentials: 'omit'
apparently leads to a delete ofcredentials
inRequestInitializerDict
, yet appears to be accessed by Cloudflare.Notes
This issue only happens when the page gets called directly. When navigating to the cached page from another page, i.e. using client-side routing, load works as expected.
Reproduction
Repo
https://github.com/flaming-codes/sveltekit-cloudflare-cache-issue
Live demo
https://070b0bb1.sveltekit-cloudflare-cache-issue.pages.dev/posts/slug-101
Steps to reproduce
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
I marked it as
blocking all usage
, as this effectively blocks me from developing a CMS-heavy site. No caching just isn't an option, and direct loading of the page has to work from cache.The text was updated successfully, but these errors were encountered: