Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [beec6c8b2abfd3286bd7c0a1c7ecb04686af6448] by Cheah Chu Yeow

Revision beec6c8b2abfd3286bd7c0a1c7ecb04686af6448, committed by Cheah Chu Yeow · March 2nd, 2011 @ 03:14 PM

Fix Action caching bug where an action that has a non-cacheable response always renders a nil response body. It now correctly renders the response body.

Note that only GET and HTTP 200 responses can be cached.

[#6480 state:committed]

Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/beec6c8b2abfd3286bd7c0a1c7ecb...

2 changed files

  • M actionpack/lib/action_controller/caching/actions.rb
  • M actionpack/test/controller/caching_test.rb