Fixes #38867: Clear browser data on logout
This is based on the implementation described here: https://github.com/github/secure_headers/blob/main/docs/per_action_configuration.md#clearing-browser-cache
Would this just clear the cache for Foreman or everything in the browser?
Just the data for the Foreman site itself.
On the host details page, Details tab, you can expand or collapse each individual card. Your card expand/collapse states are saved in localStorage. I think it's useful for those to survive a logout.
Can this clear localStorage selectively?
How do you we ensure a clean line is draw between what we save and what we do not? I get the niceness form a user perspective, but I feel like this should be handled persistently in the database if we really want to offer users this.