Search code examples
ruby-on-railsrubyruby-on-rails-3.1

Ruby on Rails: why do i get message for javascript and css after rails s?


rails s=>

Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-10-11 03:37:03 -0900
Served asset /application.css - 304 Not Modified (0ms)


Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2011-10-11 03:37:03 -0900
Served asset /home.css - 304 Not Modified (0ms)


Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2011-10-11 03:37:03 -0900
Served asset /jquery_ujs.js - 304 Not Modified (0ms)


Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2011-10-11 03:37:03 -0900
Served asset /jquery.js - 304 Not Modified (0ms)


Started GET "/assets/home.js?body=1" for 127.0.0.1 at 2011-10-11 03:37:03 -0900
Served asset /home.js - 304 Not Modified (0ms)


Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-10-11 03:37:03 -0900
Served asset /application.js - 304 Not Modified (0ms)

I get these message every time when page reloads.

How can i get rid of this message?


Solution

  • As DGM indicated, I was able to suppress most of these messages via modification to the development.rb file, specifically changing:

    config.assets.debug = true
    

    to

    config.assets.debug = false