instance method no_cache?

Ruby on Rails 8.1.2

Since v8.1.2

Signature

no_cache?()

Returns true if the no-cache directive is present. This directive indicates that a cache must not use the response to satisfy subsequent requests without successful validation on the origin server.

Source
# File actionpack/lib/action_dispatch/http/cache.rb, line 98
          def no_cache?
            @no_cache
          end

Defined in actionpack/lib/action_dispatch/http/cache.rb line 98 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Http::Cache::Request::CacheControlDirectives

Type at least 2 characters to search.

↑↓ navigate · open · esc close