mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix typos and broken link on asset pipeline guide
This commit is contained in:
@@ -63,7 +63,7 @@ This has several disadvantages:
|
||||
<ol>
|
||||
<li>
|
||||
<strong>Not all caches will cache content with a query string</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 these case 5-20% of requests will not be cached.
|
||||
"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.
|
||||
</li>
|
||||
<li>
|
||||
<strong>The file name can change between nodes in multi-server environments.</strong><br>
|
||||
@@ -132,7 +132,7 @@ In regular views you can access images in the +assets/images+ directory like thi
|
||||
|
||||
Provided that the pipeline is enabled within your application (and not disabled in the current environment context), this file is served by Sprockets. If a file exists at +public/assets/rails.png+ it is served by the webserver.
|
||||
|
||||
Alternatively, a request for a file with an MD5 hash such as +public/assets/rails-af27b6a414e6da00003503148be9b409.png+ is treated the same way. How these hashes are generated is covered in the "Production Assets":#production_assets section later on in this guide.
|
||||
Alternatively, a request for a file with an MD5 hash such as +public/assets/rails-af27b6a414e6da00003503148be9b409.png+ is treated the same way. How these hashes are generated is covered in the "In Production":#in-production section later on in this guide.
|
||||
|
||||
Sprockets will also look through the paths specified in +config.assets.paths+ which includes the standard application paths and any path added by Rails engines.
|
||||
|
||||
@@ -537,7 +537,7 @@ WARNING: If you are upgrading an existing application and intend to use this opt
|
||||
|
||||
h3. How Caching Works
|
||||
|
||||
Sprockets uses the default rails cache store to cache assets in development and production.
|
||||
Sprockets uses the default Rails cache store to cache assets in development and production.
|
||||
|
||||
TODO: Add more about changing the default store.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user