diff options
author | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-07-03 13:47:24 +1200 |
---|---|---|
committer | Richard Hulse <richard.hulse@radionz.co.nz> | 2011-07-03 13:53:39 +1200 |
commit | 0dc2c57bb3084f0fbbacbbb015e370b1164deb0e (patch) | |
tree | 9b450b97287d44d75a20165b2dd97fb43c0ee32f /railties | |
parent | cfbed13a61a35529fcb57a4291adb708be08dd15 (diff) | |
download | rails-0dc2c57bb3084f0fbbacbbb015e370b1164deb0e.tar.gz rails-0dc2c57bb3084f0fbbacbbb015e370b1164deb0e.tar.bz2 rails-0dc2c57bb3084f0fbbacbbb015e370b1164deb0e.zip |
[asset pipeline] Add resources to fingerprinting
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/asset_pipeline.textile | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/railties/guides/source/asset_pipeline.textile b/railties/guides/source/asset_pipeline.textile index 1c84564bc4..68106500d0 100644 --- a/railties/guides/source/asset_pipeline.textile +++ b/railties/guides/source/asset_pipeline.textile @@ -46,8 +46,7 @@ Fingerprinting is a technique where the filenames of content that is static or i When a filename is unique and based on its content, http headers can be set to encourage caches everywhere (at ISPs, in browsers) to keep there own copy of the content. When the content is updated, the fingerprint will change and the remote clients will request the new file. This is generally known as _cachebusting_. -The most common technique is to insert a hash of the content into the name, usually at the end. For example a CSS file +global.css+ is hashed and the filename is updated to incorporate the hash. - +The most effective technique is to insert a hash of the content into the name, usually at the end. For example a CSS file +global.css+ is hashed and the filename is updated to incorporate the hash. <plain> global.css => global-908e25f4bf641868d8683022a5b62f54.css @@ -55,7 +54,7 @@ global.css => global-908e25f4bf641868d8683022a5b62f54.css This is the strategy adopted by the Rails asset pipeline. -Rails old strategy was to append a query string to every asset linked with a built-in helper. In the source the generated code looks like this: +Rails old strategy was to append a query string to every asset linked with a built-in helper. In the source the generated code looked like this: <plain> /stylesheets/global.css?1309495796 |