protected Method

Base.expires_now(

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).

Source Code

# File action_controller/base.rb, line 1090
def expires_now #:doc:
  response.headers["Cache-Control"] = "no-cache"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.