Symfony 应用程序:对于每个 HTTP GET,有 2 个 HTTP HEAD:为什么?

Symfony app: For each HTTP GET, there are 2 HTTP HEAD: why?

我刚刚意识到,在 symfony 2.6 上的新项目中,每次我在 url 上执行 GET 时,之后自动会有 2 HEAD 在同一个请求上。

但我想不通为什么?问题从哪里开始?

有人知道我可以从哪里开始挖掘吗?

这是我的 access 日志的摘录:

::1 - - [05/Feb/2015:02:06:31 +0100] "GET /tvjp/demande/lister HTTP/1.1" 200 49930
::1 - - [05/Feb/2015:02:06:34 +0100] "HEAD /tvjp/demande/lister HTTP/1.1" 200 -
::1 - - [05/Feb/2015:02:06:37 +0100] "HEAD /tvjp/demande/lister HTTP/1.1" 200 -
::1 - - [05/Feb/2015:02:07:02 +0100] "GET /tvjp/ws/requests HTTP/1.1" 200 201
::1 - - [05/Feb/2015:02:07:05 +0100] "HEAD /tvjp/ws/requests HTTP/1.1" 200 -
::1 - - [05/Feb/2015:02:07:07 +0100] "HEAD /tvjp/ws/requests HTTP/1.1" 200 -
::1 - - [05/Feb/2015:02:12:33 +0100] "GET /tvjp/demande/editer HTTP/1.1" 200 1080
::1 - - [05/Feb/2015:02:12:42 +0100] "HEAD /tvjp/demande/editer HTTP/1.1" 500 -
::1 - - [05/Feb/2015:02:12:45 +0100] "HEAD /tvjp/demande/editer HTTP/1.1" 500 -
::1 - - [05/Feb/2015:02:12:49 +0100] "GET /tvjp/ws/requests/136 HTTP/1.1" 200 39
::1 - - [05/Feb/2015:02:12:54 +0100] "HEAD /tvjp/ws/requests/136 HTTP/1.1" 200 -
::1 - - [05/Feb/2015:02:12:56 +0100] "HEAD /tvjp/ws/requests/136 HTTP/1.1" 200 -

这与 Symfony 框架无关。你用的是什么浏览器??您是否可能在您的网络浏览器中打开了开发人员控制台?你有没有在浏览器中安装任何插件??尝试使用其他浏览器并检查您的访问日志。