Module: Gitlab::NoCacheHeaders

Included in:
API::Helpers::HeadersHelpers, ApplicationController
Defined in:
lib/gitlab/no_cache_headers.rb

Constant Summary collapse

DEFAULT_GITLAB_NO_CACHE_HEADERS =
{
  'Cache-Control' => "#{ActionDispatch::Http::Cache::Response::DEFAULT_CACHE_CONTROL}, no-store, no-cache",
  'Pragma'        => 'no-cache', # HTTP 1.0 compatibility
  'Expires'       => 'Fri, 01 Jan 1990 00:00:00 GMT'
}.freeze

Instance Method Summary collapse

Instance Method Details

#no_cache_headersObject


11
12
13
# File 'lib/gitlab/no_cache_headers.rb', line 11

def no_cache_headers
  raise "#no_cache_headers is not implemented for this object"
end