强制客户端浏览器清除缓存

时间:2019-12-07 05:01:00

标签: ruby-on-rails

我有一个Rail应用,用户可以在其中切换租户。问题在于,在生产环境中,浏览器正在缓存旧的客户端HTML等。

我碰到了这个:

via mod_esl?

headers["Cache-Control"] = "no-cache, no-store, must-revalidate" # HTTP 1.1.
headers["Pragma"] = "no-cache" # HTTP 1.0.
headers["Expires"] = "0" # Proxies.

我有一个设置会话变量然后重定向到root的控制器。我现在想“重置”缓存等。

0 个答案:

没有答案