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

Can the documentation please describe "x-sveltekit-invalidated" #13628

Open
michaelu123 opened this issue Mar 22, 2025 · 0 comments
Open

Can the documentation please describe "x-sveltekit-invalidated" #13628

michaelu123 opened this issue Mar 22, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@michaelu123
Copy link

Describe the bug

I write a PWA and get an error "The FetchEvent for "https://.../__data.json?x-sveltekit-invalidated=1" resulted in a network error response: the promise was rejected." I googled x-sveltekit-invalidated and found nothing except two issues that seem unrelated. Should the sveltekit docs not describe this message somewhere?
Right now, I am quite disappointed that my PWA does not really work offline, as promised.

Reproduction

https://github.com/michaelu123/nk
I start the app with npm run preview, then start ngrok with port 4173, then I start the installed app on a phone, then I disable the network, then I click on a map marker to display more info about the location (all data being in IndexedDB), then I get the error. If I enable the network, display the data, disable the network, and display the data again, it works, for some time. But I want to understand what x-sveltekit-invalidated is about.

Logs

System Info

Android, App installed from result of npm run build, npm run preview, resp. npm run dev

Severity

annoyance

@Conduitry Conduitry transferred this issue from sveltejs/svelte Mar 22, 2025
@Conduitry Conduitry added the documentation Improvements or additions to documentation label Mar 22, 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
Projects
None yet
Development

No branches or pull requests

2 participants