-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
svelte 5 : navigation hanging in prod with cached _data.json #12180
Comments
@zhihengGet I'm having a similar issue, I'm curious why did you closed this issue? Did you find a solution? |
i think i did it by make sure fetch request has no-store in cache-control, you can refer here on how to |
Describe the bug
everything works locally, but after deployment to
cloudflare worker
the navigation starts to hang.if i am on
page A
, then navigate back toPage B
by click on a link cause hanging.i checked devtool,
_data.json
file is fetched with status304
and no response cache-control but navigation does not happen , the response itself is also wrong, i.e /blog/1/_data.json would return the response for /blog/1 which is the response from my database, the correct response is which i got from local dev:
in local env, i see status for
_data.json
after click on link is200
and the responsecache-control
is no-store, so in production, i tried disable browser cache which solved the problem,fixed it by adding a page rule to not cachei, but i feel like this is a bug with sveltekit , using cache is fine for _data.json i guess?_data.json
path for cffixed it by adding reqeust cache controller header - no store by proxying fetch
if there's any other suggestions would be great..
Reproduction
if you really really really need one, i can try to come up with one but since it is on prod only , it will be a bit hard
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: