Ticket #3335: caching.diff
| File caching.diff, 0.7 kB (added by tom@craz8.com, 3 years ago) |
|---|
-
actionpack/lib/action_controller/caching.rb
old new 195 195 end 196 196 197 197 def after(controller) 198 return if !@actions.include?(controller.action_name.intern) || controller.rendered_action_cache 198 return if !@actions.include?(controller.action_name.intern) || 199 controller.rendered_action_cache || controller.response.headers['Status'] != '200 OK' 199 200 controller.write_fragment(controller.url_for.split("://").last, controller.response.body) 200 201 end 201 202 end