Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rails 会自动将 etag 添加到所有响应中。我怎样才能改变这种行为?我找到了 Rails 2.x 的一些示例,但它不起作用。
您可以使用以下命令禁用 config/environments/*.rb 文件中的缓存:
config.action_controller.perform_caching = false
伊恩