Sha256: 85bcb3085ceb9908c0e2f11ed30b4704e55e703064f43968baa1d929c5c7344c

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

module Rack
  module PactBroker
    class AddCacheHeader
      def initialize app
        @app = app
      end

      def call(env)
        status, headers, body = @app.call(env)
        [status, { "Cache-Control" => "no-cache" }.merge(headers || {}), body]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pact_broker-2.112.0 lib/rack/pact_broker/add_cache_header.rb
pact_broker-2.111.0 lib/rack/pact_broker/add_cache_header.rb
pact_broker-2.109.1 lib/rack/pact_broker/add_cache_header.rb
pact_broker-2.109.0 lib/rack/pact_broker/add_cache_header.rb
pact_broker-2.108.0 lib/rack/pact_broker/add_cache_header.rb