为什么Chrome会请求robots.txt?

zyt*_*hon 8 google-chrome robots.txt chromium

我在日志中注意到Chrome要求的是robots.txt我期望的所有内容.

[...]
2017-09-17 15:22:35 - (sanic)[INFO]: Goin' Fast @ http://0.0.0.0:8080
2017-09-17 15:22:35 - (sanic)[INFO]: Starting worker [26704]
2017-09-17 15:22:39 - (network)[INFO][127.0.0.1:36312]: GET http://localhost:8080/  200 148
2017-09-17 15:22:39 - (sanic)[ERROR]: Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/sanic/app.py", line 493, in handle_request
    handler, args, kwargs, uri = self.router.get(request)
  File "/usr/local/lib/python3.5/dist-packages/sanic/router.py", line 307, in get
    return self._get(request.path, request.method, '')
  File "/usr/local/lib/python3.5/dist-packages/sanic/router.py", line 356, in _get
    raise NotFound('Requested URL {} not found'.format(url))
sanic.exceptions.NotFound: Requested URL /robots.txt not found

2017-09-17 15:22:39 - (network)[INFO][127.0.0.1:36316]: GET http://localhost:8080/robots.txt  404 42
[...]
Run Code Online (Sandbox Code Playgroud)

我正在运行Chromium:

60.0.3112.113 (Developer Build) Built on Ubuntu, running on Ubuntu 16.04 (64-bit)

为什么会这样?有人可以详细说明吗?

Mon*_*Kin 8

有可能是您的网站没有请求该robots.txt文件,但有一个Chrome扩展程序(如您提到的Wappalizer).这可以解释为什么它只发生在Chrome中.

要确定您可以查看Chrome的DevTools的"网络"标签,以查看请求的发生点,以及它是否来自您的某个脚本.