How to get caches_action to set expires headers when there is a hit in memcached?
问题 I have an action which I cache using caches_action :my_action, :expires_in=>1.hours and also set the expires headers in the action itself using def my_action ... expires_in 1.hours send_data(...,:disposition => 'inline',:type => 'image/png',:filename => params[:title]+".png") end However, when I look at the cache control response header from a result that is coming as the result of a memcached hit, I get this: Cache-Control: private, max-age=0, must-revalidate The first time round, i.e. when