Ruby on rails 页码为';单击浏览器中的“上一步”按钮后不会重新加载

Ruby on rails 页码为';单击浏览器中的“上一步”按钮后不会重新加载,ruby-on-rails,caching,turbolinks,Ruby On Rails,Caching,Turbolinks,单击“我的浏览器”中的“上一步”按钮时,url已更改,但页面内容已过时/缓存 我试过使用: 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

单击“我的浏览器”中的“上一步”按钮时,url已更改,但页面内容已过时/缓存

我试过使用:

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
但这似乎没有帮助


如果您对如何使其正常工作有任何想法/建议,我将非常高兴…

您是否使用TurboLink/yes im使用TurboLink扫描您是否尝试为我刷新-这是否允许页面刷新?当我在单击“上一步”按钮后手动刷新页面时,请尝试以下解决方案: