Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6159

Show
Ignore:
Timestamp:
02/18/07 00:00:14 (2 years ago)
Author:
david
Message:

Added default mime type for CSS (Mime::CSS) [DHH]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r6158 r6159  
    11*SVN* 
     2 
     3* Added default mime type for CSS (Mime::CSS) [DHH] 
    24 
    35* Added that rendering will automatically insert the etag header on 200 OK responses. The etag is calculated using MD5 of the response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified and the response body will be set to an empty string. [DHH] 
  • trunk/actionpack/lib/action_controller/mime_types.rb

    r5912 r6159  
    33Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml ) 
    44Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript ) 
     5Mime::Type.register "text/css", :css 
    56Mime::Type.register "text/calendar", :ics 
    67Mime::Type.register "text/csv", :csv