Methods
Constants
DEFAULT_CACHE_CONTROL | = | "max-age=0, private, must-revalidate" |
Attributes
[R] | cache_control | |
[R] | etag | |
[R] | etag? |
Instance Public methods
Source: show
# File actionpack/lib/action_dispatch/http/cache.rb, line 59 def etag=(etag) key = ActiveSupport::Cache.expand_cache_key(etag) @etag = self["ETag"] = %Q("#{Digest::MD5.hexdigest(key)}") end
Source: show
# File actionpack/lib/action_dispatch/http/cache.rb, line 45 def last_modified if last = headers['Last-Modified'] Time.httpdate(last) end end
Source: show
# File actionpack/lib/action_dispatch/http/cache.rb, line 55 def last_modified=(utc_time) headers['Last-Modified'] = utc_time.httpdate end
Source: show
# File actionpack/lib/action_dispatch/http/cache.rb, line 51 def last_modified? headers.include?('Last-Modified') end