Static file handler for Rails < 2.3. This handler is only provided as a convenience for developers. Performance-minded deployments should use nginx (or similar) for serving static files.
This supports page caching directly and will try to resolve a request in the following order:
If the requested exact PATH_INFO exists as a file then serve it.
If it exists at PATH_INFO+rest_operator+“.html” exists then serve that.
This means that if you are using page caching it will actually work with Unicorn and you should see a decent speed boost (but not as fast as if you use a static server like nginx).
avoid allocating new strings for hash lookups
Originally generated with the Darkfish Rdoc Generator 2, modified by wrongdoc.
We love to hear from you!