I have a Rail app where the user can switch tenants. The issue is that in production the browser is caching the old client HTML etc.
I came across this:
How do we control web page caching, across all browsers?
headers["Cache-Control"] = "no-cache, no-store, must-revalidate" # HTTP 1.1.
headers["Pragma"] = "no-cache" # HTTP 1.0.
headers["Expires"] = "0" # Proxies.
I have a controller that sets a session variable and then redirects to root. I want to 'reset' the cache etc. at this point.