单击浏览器中的后退按钮后,页面不会重新加载

时间:2014-08-28 12:53:50

标签: ruby-on-rails caching turbolinks

在我的浏览器中点击后退按钮时,网址会被更改,但页面内容是陈旧/缓存的。

我尝试过使用:

def set_no_cache
  response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
  response.headers["Pragma"] = "no-cache"
  response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
end

但它似乎没有帮助。

对于如何使其正常工作的任何想法/建议会很高兴...

0 个答案:

没有答案