ReactSSRCasts
ReactSSRCasts copied to clipboard
Unauthenticated redirect status changed to 302
Hi Stephen,
When I navigated to '/admins' unauthed, the 301 "Moved Permanently" status code was cached by my browser (Chrome). When visiting the route, even after logging in, it would still take me to the cached redirect of '/'. I updated the status to 302, I think this should prevent this.
Code looks good. One request, can you add in a comment above this change linking back to the thread you posted on Udemy about this?