aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/asset_pipeline.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-09-01 23:51:23 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-09-01 23:51:23 +0530
commita6674991037fc360c7a72e7c28eec448f0231a3e (patch)
treef31b246cf779b8a09b4bc1d0db132c0e712d732b /guides/source/asset_pipeline.textile
parent7f800b4d69c0750bb47989027580299751a22616 (diff)
parent831b814a8778aad0d038aab550b7d405d4a69d37 (diff)
downloadrails-a6674991037fc360c7a72e7c28eec448f0231a3e.tar.gz
rails-a6674991037fc360c7a72e7c28eec448f0231a3e.tar.bz2
rails-a6674991037fc360c7a72e7c28eec448f0231a3e.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/asset_pipeline.textile')
-rw-r--r--guides/source/asset_pipeline.textile5
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/source/asset_pipeline.textile b/guides/source/asset_pipeline.textile
index e385ec4f17..2a15e95282 100644
--- a/guides/source/asset_pipeline.textile
+++ b/guides/source/asset_pipeline.textile
@@ -70,11 +70,11 @@ The query string strategy has several disadvantages:
<ol>
<li>
- <strong>Not all caches will reliably cache content where the filename only differs by query parameters</strong>.<br>
+ <strong>Not all caches will reliably cache content where the filename only differs by query parameters</strong>.<br />
"Steve Souders recommends":http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/, "...avoiding a querystring for cacheable resources". He found that in this case 5-20% of requests will not be cached. Query strings in particular do not work at all with some CDNs for cache invalidation.
</li>
<li>
- <strong>The file name can change between nodes in multi-server environments.</strong><br>
+ <strong>The file name can change between nodes in multi-server environments.</strong><br />
The default query string in Rails 2.x is based on the modification time of the files. When assets are deployed to a cluster, there is no guarantee that the timestamps will be the same, resulting in different values being used depending on which server handles the request.
</li>
<li>
@@ -473,6 +473,7 @@ Precompiled assets exist on the filesystem and are served directly by your web s
For Apache:
<plain>
+# The Expires* directives requires the Apache module +mod_expires+ to be enabled.
<LocationMatch "^/assets/.*$">
# Use of ETag is discouraged when Last-Modified is present
Header unset ETag