daniel.t
daniel.t
CDCloudflare Developers
Created by daniel.t on 10/6/2023 in #general-help
How to purge cache
I've tried: 1. development mode 2. purge cache 3. cache rule - bypass 4. turn off cloudflare 5. turn off pretender 6. set private, no-store, no-cache, must-revalidate, s-maxage=0 7. Window refresh without cache - works but after normal refresh - brings back old cache-control 8. incognito mode 9. Browser Cache TTL = 0 Why it works only if I check Disable Cache in browser?
3 replies
CDCloudflare Developers
Created by daniel.t on 9/28/2023 in #pages-help
Sveltekit Error: Function called outside component initialization
Migrating from adapter-node. Finished initial setup, got public pages working. But stuck after authentication. In my app user getting redirected to internal pages. Those pages are rendered on server side usually. CF throws 500 and gives following error in the log:
"logs": [
{
"message": [
"Error: Function called outside component initialization"
],
"level": "error",
"timestamp": 1695888842554
}
],
"logs": [
{
"message": [
"Error: Function called outside component initialization"
],
"level": "error",
"timestamp": 1695888842554
}
],
Is there any way to see stack trace? How to debug such things? I tried to comment different files one by one, but this thing is still there.
1 replies