instance method no_store

Ruby on Rails 8.1.2

Since v7.0.10

Available in: v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

no_store()

Sets an HTTP 1.1 Cache-Control header of no-store. This means the resource may not be stored in any cache.

Source
# File actionpack/lib/action_controller/metal/conditional_get.rb, line 331
    def no_store
      response.cache_control.replace(no_store: true)
    end

Defined in actionpack/lib/action_controller/metal/conditional_get.rb line 331 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::ConditionalGet

Type at least 2 characters to search.

↑↓ navigate · open · esc close