You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that essentially came from me using a prefetch link (<a svelte:prefetch href=“/LIP”>) for a url that only exists as a serverside redirect (in netlify). in a normal a href context that would work. but sveltekit is being too smart, or not smart enough, here. it checks its cache for a page called “LIP”, and not finding it, returns a 404 and end of story. i think it should deopt from clientside navigation and go actually check the network, and let the 404 handling happen there (again via sveltekit).
see what i mean? basically the only reason we do clientside nav is to make it fast, but we dont have to be fast for 404’s.
Describe the bug
i had a bug reported here: https://twitter.com/clearhunch/status/1494317555275677696?s=21
that essentially came from me using a prefetch link (
<a svelte:prefetch href=“/LIP”>
) for a url that only exists as a serverside redirect (in netlify). in a normal a href context that would work. but sveltekit is being too smart, or not smart enough, here. it checks its cache for a page called “LIP”, and not finding it, returns a 404 and end of story. i think it should deopt from clientside navigation and go actually check the network, and let the 404 handling happen there (again via sveltekit).see what i mean? basically the only reason we do clientside nav is to make it fast, but we dont have to be fast for 404’s.
Reproduction
the diff i made swyxio/swyxdotio@4f16ef6
its really obvious but it is an abstraction leak, and yes i know i could just remove prefetch but why make me check
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: