Chrome——查看源代码选项淡出

Chrome——查看源代码选项淡出

Ctrl+U 不起作用并且‘查看源代码’选项消失了......

http://geobeck.tripod.com/bin/counter/~geobeck/jokehold/jokes.html

在此处输入图片描述

答案1

因为 URL 返回的是 PNG。以下是 Firefox 中 HttpFox 的输出:

在此处输入图片描述

请注意类型列。

还:

$ curl -D headers 'http://geobeck.tripod.com/bin/counter/~geobeck/jokehold/jokes.html' >jokes
$ cat headers
HTTP/1.1 200 OK
Date: Sat, 31 Oct 2015 16:50:25 GMT
Server: Squeegit/1.2.5 (3_sir)
Set-Cookie: CookieStatus=COOKIE_OK; path=/; domain=.tripod.com; expires=Sun, 30-Oct-2016 16:50:25 GMT
Vary: *
X-Server-IP: 209.202.244.196
P3P: policyref="http://www.lycos.com/w3c/p3p.xml", CP="IDC DSP COR CURa ADMa DEVa CUSa PSAa IVAa CONo OUR IND UNI STA"
Content-Length: 150
Expires: Thu, 01 Jan 1970 00:16:40 GMT
Connection: close
Content-Type: image/png

注意 Content-Type 标头。

$ file jokes
jokes: PNG image, 70 x 11, 1-bit colormap, non-interlaced

PNG 没有“源”,至少浏览器不允许查看源。

相关内容