Enable image caching in development mode in Rails 3.1
问题 In Rails 3.1 development mode (when using the asset pipeline), images served out of assets/images are served up with the response header "Cache Control: must-revalidate". This means that Google Chrome (and seemingly only Chrome) will attempt to re-fetch images numerous times—even during a single page view. This has resulted in screwy issues with all manners of DOM manipulation via JavaScript. To name a few: jQuery UI Draggable sometimes features a dramatic offset from the mouse cursor Adding