Skip to content
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

Prevent browser cache #213

Merged
merged 1 commit into from
Jun 9, 2019
Merged

Prevent browser cache #213

merged 1 commit into from
Jun 9, 2019

Conversation

danschultzer
Copy link
Collaborator

@danschultzer danschultzer commented Jun 7, 2019

Resolves #212

This will set the "cache-control" header to "no-cache, no-store, must-revalidate" on login/signup pages, only if the current header is just the default struct value. This prevents back button from showing the login/signup pages when user has been authenticated. Developers can easily override this default behavior by setting their own cache control header (albeit this will not work if it's identical to the default struct value).

@danschultzer danschultzer marked this pull request as ready for review June 9, 2019 15:47
@danschultzer danschultzer merged commit b320014 into master Jun 9, 2019
@danschultzer danschultzer deleted the header-cache-control branch June 9, 2019 16:53
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.

Use no-cache In cache-control header for session and registration form pages
1 participant