Skip to content
Browse files

Be a little bit smarted about appending existing values.

  • Loading branch information...
1 parent 0aafd90 commit bad7ac947319efb6eb7781fd07588986cf22c7bd @clowder committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/dont_mess_with_my_js.rb
View
2 lib/rack/dont_mess_with_my_js.rb
@@ -7,7 +7,7 @@ def initialize(app)
def call(env)
status, headers, body = @app.call(env)
- headers['Cache-Control'] = "no-transform; #{ headers['Cache-Control'] }"
+ headers['Cache-Control'] = ['no-transform', headers['Cache-Control']].compact.join(',')
[status, headers, body]
end

0 comments on commit bad7ac9

Please sign in to comment.
Something went wrong with that request. Please try again.