Files
website/src/routes/docs/tutorials/sveltekit-ssr-auth
Steven Nguyen 0714b9cbff fix(tutorial): update redirect in SvelteKit SSR auth tutorial
The current redirect status code is 301, but that is a permanent
redirect. The problem with this is the browser will cache the redirect
and redirect for every request without even making a request to the
server.

Instead, we should use a 302 status code, which is a temporary redirect.
So, when the user hits the home page, the browser will hit the server
so that the server checks whether the user is logged in or not and
redirect accordingly instead of always redirecting to the same page.
2024-08-16 21:38:30 +00:00
..
2024-03-09 18:38:36 +01:00
2024-03-09 22:11:06 +01:00
2024-03-10 11:52:34 +00:00
2024-03-11 16:05:46 +00:00
2024-02-09 10:58:41 +00:00
2024-02-06 10:52:07 +00:00
2024-02-06 10:52:07 +00:00
2024-02-28 23:16:13 +01:00