mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-10 04:22:18 +00:00
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.