Chrome ruby​​mine 服务器日志

Chrome rubymine server log

当我开始在 chrome 地址栏中键入 localhost:3000/ 时,它会在我单击 "Enter" 按钮之前启动对 application/index 的 GET 请求。此时在我的服务器日志中我看到

Started GET "/" for 127.0.0.1 at 2015-09-20 23:22:28 +0300
  ActiveRecord::SchemaMigration Load (0.9ms)  SELECT "schema_migrations".* FROM "schema_migrations"
Processing by ApplicationController#index as HTML
  Rendered application/index.html.erb within layouts/application (0.4ms)
Completed 200 OK in 1535ms (Views: 1520.0ms | ActiveRecord: 0.0ms)

然后我的服务器日志似乎已经死了。一切正常,我可以浏览我的应用程序中的页面并且所有请求都成功完成,但日志为空。此外,当我单击书签 localhost:3000 时,问题并没有消失。使用 Mozilla 我没有这样的问题。

Google Chrome 使用预取(预呈现)功能在您显式访问页面之前加载该页面。 Chrome 的行为可能因版本而异,但要建议浏览器停止预取页面,请确保代码中没有这些标签:

<link rel="dns-prefetch" href="...">

<link rel="prerender" href="...">

维基百科解释更多 here. It is probably would be difficult to turn prefetching off in Chrome but Mozilla (however you don't have problem with) recommend to try this:

<meta http-equiv="x-dns-prefetch-control" content="off">