Skip to content

Conversation

@dsoucie
Copy link

@dsoucie dsoucie commented Oct 19, 2017

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.

…1 gets cached by some browsers and will redirect even after user is authed.
@StephenGrider
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants