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",
  'Expires' => 'Fri, 01 Jan 1990 00:00:00 GMT'
}.freeze

Instance Method Summary collapse

Instance Method Details

#no_cache_headersObject



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

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