Jun20
Rack Mimetypes
When a Rack-based framework (Rails >= 2.3, Sinatra, etc) serves a static file, it uses the Rack mimetimes hash to map the file’s extension to the Content-Type header on the response. For example, serving text/plain for .txt, or image/jpeg for .jpg.
Continue reading »