Rack::DomainSprinkler Contest finalist
Added by chriskottom
at October 29, 2009 08:52
GitHub stats:
watcher(s)
fork(s)
About
Modifies outgoing HTML markup such that requests for common static assets (currently fixed, <link>, <script>, and <img> tags) will be distributed across a user-defined set of domains in order to improve parallel downloading and speed page load times. Resource URL mappings are stored upon first use in order to ensure that browser caching is not broken.
Usage
Options:
- an Array of domain names to be used for sprinklin’ (DNS zone configuration sold separately)
- the filename to be used for the URL mapping cache (uses Ruby PStore)
require "rack/domain_sprinkler"
config.middleware.use Rack::DomainSprinkler, ["dummy1.foo.com", "dummy2.foo.com", "dummy3.foo.com"], "tmp/url_mappings.pstore"
