This project is archived and is in readonly mode.

#6116 ✓wontfix
Neeraj Singh

The content-type returned after action caching is wrong sometimes

Reported by Neeraj Singh | December 5th, 2010 @ 12:53 AM | in 3.x

While working onf #5783 I encountered this issue.

If action caching is enabled for a method and if the HTTP_ACCEPT is say "text/xml" then the content will be cached and the content-type of the response will be "text/xml". So far so good.

However subsequent requests will read data from the cache. The content-type of these requests will be wrongly set to "text/html" even in the case of a request with HTTP_ACCEPT "text/xml".

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages