1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add note about asset pipeline and CDNs.

Fixes #2468.
This commit is contained in:
Steve Klabnik 2012-11-09 15:13:18 +01:00
parent 4d61d1f8f5
commit e85cb2d3bb

View file

@ -575,6 +575,17 @@ group :production do
end
```
### CDNs
If your assets are being served by a CDN, ensure they don't stick around in
your cache forever. This can cause problems. If you use
`config.action_controller.perform_caching = true`, Rack::Cache will use
`Rails.cache` to store assets. This can cause your cache to fill up quickly.
Every CDN is different, so evaluate how your CDN handles caching and make sure
that it plays nicely with the pipeline; you may find quirks related to your
specific set up.
Customizing the Pipeline
------------------------