Methods
D
E
L
Constants
LAST_MODIFIED = "Last-Modified".freeze
 
ETAG = "ETag".freeze
 
CACHE_CONTROL = "Cache-Control".freeze
 
SPECIAL_KEYS = %w[extras no-cache max-age public must-revalidate]
 
DEFAULT_CACHE_CONTROL = "max-age=0, private, must-revalidate".freeze
 
NO_CACHE = "no-cache".freeze
 
PUBLIC = "public".freeze
 
PRIVATE = "private".freeze
 
MUST_REVALIDATE = "must-revalidate".freeze
 
Attributes
[R] cache_control
[R] etag
[R] etag?
Instance Public methods
date()
# File actionpack/lib/action_dispatch/http/cache.rb, line 71
def date
  if date_header = headers['Date']
    Time.httpdate(date_header)
  end
end
date=(utc_time)
# File actionpack/lib/action_dispatch/http/cache.rb, line 81
def date=(utc_time)
  headers['Date'] = utc_time.httpdate
end
date?()
# File actionpack/lib/action_dispatch/http/cache.rb, line 77
def date?
  headers.include?('Date')
end
etag=(etag)
# File actionpack/lib/action_dispatch/http/cache.rb, line 85
def etag=(etag)
  key = ActiveSupport::Cache.expand_cache_key(etag)
  @etag = self[ETAG] = %Q("#{Digest::MD5.hexdigest(key)}")
end
last_modified()
# File actionpack/lib/action_dispatch/http/cache.rb, line 57
def last_modified
  if last = headers[LAST_MODIFIED]
    Time.httpdate(last)
  end
end
last_modified=(utc_time)
# File actionpack/lib/action_dispatch/http/cache.rb, line 67
def last_modified=(utc_time)
  headers[LAST_MODIFIED] = utc_time.httpdate
end
last_modified?()
# File actionpack/lib/action_dispatch/http/cache.rb, line 63
def last_modified?
  headers.include?(LAST_MODIFIED)
end