method

new

rails latest stable - Class: ActionDispatch::Http::Cache::Request::CacheControlDirectives

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

new(cache_control_header)
public

No documentation available.

# File actionpack/lib/action_dispatch/http/cache.rb, line 75
          def initialize(cache_control_header)
            @only_if_cached = false
            @no_cache = false
            @no_store = false
            @no_transform = false
            @max_age = nil
            @max_stale = nil
            @min_fresh = nil
            @stale_if_error = false
            parse_directives(cache_control_header)
          end