Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Destroying a session clears the browser cache for the site
The "Clear-Site-Data" header[^1] is supported in most modern browsers, and sending it when a user signs out prevents the browser from displaying cached pages when a user hits the "back" button. This helps prevent exposure of data if a user logs in to a site on a public computer, for example. [^1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Clear-Site-Data
- Loading branch information