Do Content-negotiation for Cached Content
The action_cache plugin broke our content-negotiation. Fixed.
This commit is contained in:
parent
5db9b7d3ea
commit
dc629f5c07
2 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,7 @@ module ActionController
|
|||
def send_cached_response(cache_entry, controller)
|
||||
controller.logger.info "Send #{body_name(controller)} by response.body"
|
||||
controller.response.headers = cache_entry.headers
|
||||
controller.set_content_type_header
|
||||
controller.response.body = fragment_body(controller)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue