diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-18 23:54:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-18 23:54:20 +0000 |
commit | aad7fbde68684547959dcccc2102c978d5347a78 (patch) | |
tree | 9d6c2ecc6d8b01ee3e606c3dad7497d8d5cfecbc /actionpack/CHANGELOG | |
parent | 109d4ac95443421da93bbad1d02e949429362221 (diff) | |
download | rails-aad7fbde68684547959dcccc2102c978d5347a78.tar.gz rails-aad7fbde68684547959dcccc2102c978d5347a78.tar.bz2 rails-aad7fbde68684547959dcccc2102c978d5347a78.zip |
Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r-- | actionpack/CHANGELOG | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 2110d223f9..8380af610b 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,18 @@ *SVN* +* Added caching option to AssetTagHelper#stylesheet_link_tag and AssetTagHelper#javascript_include_tag [DHH]. Examples: + + stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is false => + <link href="/stylesheets/style1.css" media="screen" rel="Stylesheet" type="text/css" /> + <link href="/stylesheets/styleB.css" media="screen" rel="Stylesheet" type="text/css" /> + <link href="/stylesheets/styleX2.css" media="screen" rel="Stylesheet" type="text/css" /> + + stylesheet_link_tag :all, :cache => true # when ActionController::Base.perform_caching is true => + <link href="/stylesheets/all.css" media="screen" rel="Stylesheet" type="text/css" /> + + ...when caching is on, all.css is the concatenation of style1.css, styleB.css, and styleX2.css. + Same deal for JavaScripts. + * Work around the two connection per host browser limit: use asset%d.myapp.com to distribute asset requests among asset[0123].myapp.com. Use a DNS wildcard or CNAMEs to map these hosts to your asset server. See http://www.die.net/musings/page_load_time/ for background. [Jeremy Kemper] * Added default mime type for CSS (Mime::CSS) [DHH] |