Skip to content

Unauthenticated redirect status changed to 302 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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