Flowdock
method

expires_in

Importance_2
Ruby on Rails latest stable (v6.1.7.7) - 1 note - Class: ActionController::Base

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

These similar methods exist in v6.1.7.7:

expires_in(seconds, options = {}) protected

Sets a HTTP 1.1 Cache-Control header. Defaults to issuing a "private" instruction, so that intermediate caches shouldn’t cache the response.

Examples:

  expires_in 20.minutes
  expires_in 3.hours, :public => true
  expires in 3.hours, 'max-stale' => 5.hours, :public => true

This method will overwrite an existing Cache-Control header. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for more possibilities.

Show source
Register or log in to add new notes.
December 12, 2014
0 thanks