1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch
schneems cfaaacd976 Enable gzip compression by default
If someone is using ActionDispatch::Static to serve assets and makes it past the `match?` then the file exists on disk and it will be served. This PR adds in logic that checks to see if the file being served is already compressed (via gzip) and on disk, if it is it will be served as long as the client can handle gzip encoding. If not, then a non gzip file will be served.

This additional logic slows down an individual asset request but should speed up the consumer experience as compressed files are served and production applications should be delivered with a CDN. This PR allows a CDN to cache a gzip file by setting the `Vary` header appropriately. In net this should speed up a production application that are using Rails as an origin for a CDN. Non-asset request speed is not affected in this PR.
2014-08-20 22:33:06 -05:00
..
middleware_stack
request Merge pull request #13999 from jamox/update_rack 2014-07-08 11:46:56 -07:00
routing always test against a routed rack app so there are always url_helpers 2014-07-07 10:22:13 -07:00
session Expectations first 2014-08-18 15:40:53 +09:00
callbacks_test.rb
cookies_test.rb Expectations first 2014-08-18 15:40:53 +09:00
debug_exceptions_test.rb Expectations first 2014-08-18 15:40:53 +09:00
header_test.rb HTTP::Headers#key? correctly converts 2014-05-07 12:01:34 -05:00
live_response_test.rb use the body proxy to freeze headers 2014-03-12 17:40:08 -07:00
mapper_test.rb fewer operations on the options hash 2014-08-13 18:34:21 -07:00
middleware_stack_test.rb
mime_type_test.rb Expectations first 2014-08-18 15:40:53 +09:00
mount_test.rb Rails-ish apps should descend from Rails::Railtie 2014-07-16 15:41:47 -07:00
prefix_generation_test.rb call the routes method on engines 2014-08-05 16:50:50 -07:00
rack_cache_test.rb
reloader_test.rb Reset callbacks after test. 2014-06-05 22:30:53 +08:00
request_id_test.rb
request_test.rb Protect against error when parsing parameters with Bad Request 2014-08-19 15:36:05 -03:00
response_test.rb Restore Response.default_headers after test. 2014-06-05 22:52:13 +08:00
routing_assertions_test.rb
routing_test.rb Remove unnecessary call to #tap 2014-07-31 08:10:37 -03:00
show_exceptions_test.rb Stash original path in ShowExceptions middleware 2014-07-14 11:55:44 +01:00
ssl_test.rb Avoid URI parsing 2014-04-09 14:19:53 -03:00
static_test.rb Enable gzip compression by default 2014-08-20 22:33:06 -05:00
template_assertions_test.rb Improve description of tests. 2014-07-25 00:43:45 +08:00
test_request_test.rb Allow overriding of all headers from passed environment hash 2013-07-25 07:54:57 +01:00
test_response_test.rb
uploaded_file_test.rb always transcode the file to utf-8 2014-07-16 11:35:27 -07:00
url_generation_test.rb always test against a routed rack app so there are always url_helpers 2014-07-07 10:22:13 -07:00