Sha256: 0c0d17dac72a0021bc9d54632dc8717ec7cfaa92ee71e7bb671daad2f84c9714

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

module Rack
  class DontMessWithMyJs
    def initialize(app)
      @app = app
    end

    def call(env)
      status, headers, body = @app.call(env)

      headers['Cache-Control'] = ['no-transform', headers['Cache-Control']].compact.join(',')

      [status, headers, body]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dont-mess-with-my-js-0.0.2 lib/rack/dont_mess_with_my_js.rb