我有一个 HTML 页面。
在<img>
标签内,src=
指向外部网站:
<img src="http://a.website.com/an_image.jpg" />
在 Firefox 中,图像不会加载。但是,如果我用萤火虫检查元素,将鼠标悬停在链接上会显示正确的缩略图(就像萤火虫一样),所以我知道链接是正确的。
此外,在 Chrome 中,相同的图像可以正常加载。
为什么它没有在 Firefox 中加载?
可能/可能没有用的其他详细信息:
- 这是一个在本地与开发服务器一起运行的 python Django 应用程序
- 应用程序:Firefox 9.0.1 (20111228084940)
- 操作系统:Linux (x86_64-gcc3)
[编辑] 插件:
- [编辑] 插件被删除——不需要它们,问题原来是不同的
[编辑] 下面分别发布来自 Firefox 和 Chromium 的请求标头:
火狐:
Accept image/png,image/*;q=0.8,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip, deflate
Accept-Language en-gb,it-it;q=0.7,it;q=0.3
Cache-Control max-age=0
Connection keep-alive
Host ia.media-imdb.com
If-Modified-Since Fri, 03 Sep 2010 17:18:00 GMT
Referer http://127.0.0.1:8001/bulk_action/
User-Agent Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
铬:
Accept: */ *
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-GB,en-US;q=0.8,en;q=0.6
Cache-Control:max-age=0
Connection:keep-alive
Host:ia.media-imdb.com
If-Modified-Since:Fri, 03 Sep 2010 17:18:00 GMT
Referer:http://localhost:8001/bulk_action/
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.7 (KHTML, like Gecko) Ubuntu/11.10 Chromium/16.0.912.75 Chrome/16.0.912.75 Safari/535.7