instance method expires_now

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

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
# File actionpack/lib/action_controller/base.rb, line 1159
      def expires_now #:doc:
        response.headers["Cache-Control"] = "no-cache"
      end

Defined in actionpack/lib/action_controller/base.rb line 1159 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close