Wednesday, October 3, 2012

[Rails] Re: Rails Default ETag Generation

Is there a way to disable certain middleware based on the route? Part of my application is an API that shouldn't really ever be sending 304's while I'm fine with the web application doing that. It seems like removing Rack::ConditionalGet should eliminate the setting of the 304 when the ETags match, but I don't see a way in the documentation to remove middleware non-globally.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/IqF4NHZtjkwJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate