Module: Lotus::Action::Cache
- Defined in:
- lib/lotus/action/cache.rb,
lib/lotus/action/cache/expires.rb,
lib/lotus/action/cache/directives.rb,
lib/lotus/action/cache/cache_control.rb,
lib/lotus/action/cache/conditional_get.rb
Overview
Cache type API
Defined Under Namespace
Modules: CacheControl, Expires Classes: ConditionalGet, Directives, ETag, LastModified, NonValueDirective, ValueDirective
Constant Summary collapse
- VALUE_DIRECTIVES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Cache-Control directives which have values
%i(max_age s_maxage min_fresh max_stale).freeze
- NON_VALUE_DIRECTIVES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Cache-Control directives which are implicitly true
%i(public private no_cache no_store no_transform must_revalidate proxy_revalidate).freeze
- IF_NONE_MATCH =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'HTTP_IF_NONE_MATCH'.freeze
- ETAG =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The HTTP header for ETag
'ETag'.freeze
- IF_MODIFIED_SINCE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
'HTTP_IF_MODIFIED_SINCE'.freeze
- LAST_MODIFIED =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
The HTTP header for Last-Modified
'Last-Modified'.freeze
Class Method Summary collapse
-
.included(base) ⇒ Object
private
Override Ruby’s hook for modules.
Class Method Details
.included(base) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override Ruby’s hook for modules. It includes exposures logic
24 25 26 27 28 |
# File 'lib/lotus/action/cache.rb', line 24 def self.included(base) base.class_eval do include CacheControl, Expires end end |