aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/4_2_release_notes.md
diff options
context:
space:
mode:
authorschneems <richard.schneeman@gmail.com>2014-08-21 11:52:25 -0500
committerschneems <richard.schneeman@gmail.com>2014-08-24 15:58:16 -0500
commit8e31fa3b72892f7421b85b5a79d71a2d726ccddd (patch)
tree71d23ce8d085e453d0ae4c3538b49d161ead5588 /guides/source/4_2_release_notes.md
parent33c05363e2ed52aa8bdbf5ebf9ee5226ab85ecbc (diff)
downloadrails-8e31fa3b72892f7421b85b5a79d71a2d726ccddd.tar.gz
rails-8e31fa3b72892f7421b85b5a79d71a2d726ccddd.tar.bz2
rails-8e31fa3b72892f7421b85b5a79d71a2d726ccddd.zip
Address comments on Gzip implementation
- don't mutate PATH_INFO in env, test - test fallback content type matches Rack::File - change assertion style - make HTTP_ACCEPT_ENCODING comparison case insensitive - return gzip path from method instead of true/false so we don't have to assume later - don't allocate un-needed hash. Original comments: https://github.com/rails/rails/commit/ cfaaacd9763642e91761de54c90669a88d772e5a#commitcomment-7468728 cc @jeremy
Diffstat (limited to 'guides/source/4_2_release_notes.md')
-rw-r--r--guides/source/4_2_release_notes.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/guides/source/4_2_release_notes.md b/guides/source/4_2_release_notes.md
index 39655447e3..013e9e8dbe 100644
--- a/guides/source/4_2_release_notes.md
+++ b/guides/source/4_2_release_notes.md
@@ -268,6 +268,13 @@ Please refer to the [Changelog][action-pack] for detailed changes.
* Added an option to disable logging of CSRF failures.
([Pull Request](https://github.com/rails/rails/pull/14280))
+* When the Rails server is set to serve static assets, gzip assets will now be
+ served if the client supports it and a pre-generated gzip file (.gz) is on disk.
+ By default the asset pipeline generates `.gz` files for all compressible assets.
+ Serving gzip files minimizes data transfer and speeds up asset requests. Always
+ [use a CDN](http://guides.rubyonrails.org/asset_pipeline.html#cdns) if you are
+ serving assets from your Rails server in production.
+ ([Pull Request](https://github.com/rails/rails/pull/16466))
Action View
-------------