Method: ActionController::ConditionalGet#expires_now

Defined in:
lib/action_controller/metal/conditional_get.rb

#expires_nowObject

Sets a HTTP 1.1 Cache-Control header of “no-cache” so no caching should occur by the browser or intermediate caches (like caching proxy servers).



82
83
84
# File 'lib/action_controller/metal/conditional_get.rb', line 82

def expires_now #:doc:
  response.cache_control.replace(:no_cache => true)
end