Rails automatically adds etag to all responses. How can I change this behaviour? I found some examples for rails 2.x, but it doesn't work.
Asked
Active
Viewed 1,253 times
3
-
You need to disable caching, right? – Nick Radford Jun 24 '11 at 14:34
-
Yes, we don't want headers to be added. – Andrey Kuznetsov Jun 24 '11 at 14:57
-
Did you figure out when/where Rails is adding/generating etag to all responses? – ku1ik Aug 23 '12 at 09:58
1 Answers
2
You could disable caching in your config/environments/*.rb files with:
config.action_controller.perform_caching = false
ian.

ipd
- 5,674
- 3
- 34
- 49