Why does Rails start GETs only on page reload? -


in console, when loading page, usual list of executed commands so:

started "/employees" ::1 @ 2015-07-14 10:36:25 -0400 processing employeescontroller#index html   employee load (0.2ms)  select "employees".* "employees"   rendered employees/index.html.erb within layouts/application (7.7ms)   rendered layouts/_shim.html.erb (0.1ms)   rendered layouts/_header.html.erb (0.9ms)   rendered layouts/_footer.html.erb (0.1ms) completed 200 ok in 438ms (views: 433.9ms | activerecord: 2.4ms) 

but when reload page, same previous block, huge list of started get commands so:

...  started "/assets/static_pages.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js?body=1" ::1 @ 2015-07-14 10:38:32 -0400   started "/assets/sessions.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js?body=1" ::1 @ 2015-07-14 10:38:32 -0400   started "/assets/users.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js?body=1" ::1 @ 2015-07-14 10:38:32 -0400   started "/assets/application.self-7c44b34571f9c6f50024ec815db695a00182b9937b48d97c4ac1515ab6b385a0.js?body=1" ::1 @ 2015-07-14 10:38:32 -0400  ... 

there's 100 of these commands. appear when reload page , doesn't matter page reloaded.

i don't think it's doing damage other possibly doing unnecessary work , clogging log it'd nice if find solution.

why happening? there can prevent it?

these requests assets, browser loading page. since in development mode, served separate files.

you disable logging of assets requests, adding config/development.rb:

config.assets.logger = false 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -