From fe55163f111bb20309f20c4d18959bd6aacb41af Mon Sep 17 00:00:00 2001 From: schneems Date: Tue, 19 Jan 2016 16:22:40 -0600 Subject: Revert "Its ideal to set Vary: Accept-Encoding, irrespective of whether gzipped version exists or not. This is helpful for CDN's to later distinguish assets, based on previous, current copies and introduced gzip version if any." This reverts commit 067c52f608568e35181830a5c1016e382650e655. Conversation: https://github.com/rails/rails/pull/23120#issuecomment-173007011 --- actionpack/lib/action_dispatch/middleware/static.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_dispatch/middleware/static.rb b/actionpack/lib/action_dispatch/middleware/static.rb index 3eab3795a0..41c220236a 100644 --- a/actionpack/lib/action_dispatch/middleware/static.rb +++ b/actionpack/lib/action_dispatch/middleware/static.rb @@ -65,7 +65,7 @@ module ActionDispatch status, headers, body = @file_server.call(request.env) end - headers['Vary'] = 'Accept-Encoding' + headers['Vary'] = 'Accept-Encoding' if gzip_path return [status, headers, body] ensure -- cgit v1.2.3