wpexpertsio / password-protected

Password protect your WordPress site quickly and simply
https://wordpress.org/plugins/password-protected/
69 stars 63 forks source link

Add a Nocache header to the login page redirect to prevent the browser from caching the redirect page #173

Closed rxnlabs closed 3 years ago

rxnlabs commented 4 years ago

This prevents the user's browser from caching the redirect and making the browser think that redirect page is the original page that the user wanted to go to.

This fixes: https://github.com/benhuson/password-protected/issues/169 and https://github.com/benhuson/password-protected/issues/159