Methods
E
L
Constants
LAST_MODIFIED = "Last-Modified".freeze
ETAG = "ETag".freeze
CACHE_CONTROL = "Cache-Control".freeze
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
Instance Public methods
etag=(etag)
    # File actionpack/lib/action_dispatch/http/cache.rb, line 63
63:         def etag=(etag)
64:           key = ActiveSupport::Cache.expand_cache_key(etag)
65:           @etag = self[ETAG] = %("#{Digest::MD5.hexdigest(key)}")
66:         end
last_modified()
    # File actionpack/lib/action_dispatch/http/cache.rb, line 49
49:         def last_modified
50:           if last = headers[LAST_MODIFIED]
51:             Time.httpdate(last)
52:           end
53:         end
last_modified=(utc_time)
    # File actionpack/lib/action_dispatch/http/cache.rb, line 59
59:         def last_modified=(utc_time)
60:           headers[LAST_MODIFIED] = utc_time.httpdate
61:         end
last_modified?()
    # File actionpack/lib/action_dispatch/http/cache.rb, line 55
55:         def last_modified?
56:           headers.include?(LAST_MODIFIED)
57:         end