最近遇到个棘手的问题,google 后发现有人有一样的问题,但没答案。不知道论坛有人帮忙看看么?
I am attempting to stream a CSV file from a Rails 3.2 application. All works as expected IF I disable Rack-Cache... but I really want to keep the caching if possible. Setting 'Cache-Control: no-cache' for the response didn't help.
Here is my SO post on the topic: http://stackoverflow.com/questions/9930564/possible-to-disable-rack-cache-on-a-per-request-basis-in-rails-3-2
Is Rack-Cache incompatible with streaming responses??? Can anyone think of a way to disable Rack-Cache for this one request???