Module: Hanami::Action::Cache
- Defined in:
- lib/hanami/action/cache.rb,
lib/hanami/action/cache/expires.rb,
lib/hanami/action/cache/directives.rb,
lib/hanami/action/cache/cache_control.rb,
lib/hanami/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 max_stale min_fresh s_maxage stale_if_error stale_while_revalidate ].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[ immutable must_revalidate must_understand no_cache no_store no_transform private proxy_revalidate public ].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
22 23 24 25 26 |
# File 'lib/hanami/action/cache.rb', line 22 def self.included(base) base.class_eval do include CacheControl, Expires end end |