Welcome to mirror list, hosted at ThFree Co, Russian Federation.

no_cache_headers.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d03741480dd1df7b07cb9877e2ba3dc30339dea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Gitlab
  module NoCacheHeaders
    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

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