云伴侣-云伴侣是管理云服务器、云主机最简单、最省心的方式.

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1739|回复: 1

Firefox访问某些个网站不加载页面的解决方案

[复制链接]
发表于 2014-8-25 11:47:59 | 显示全部楼层 |阅读模式
本帖最后由 貓咪燒香 于 2014-8-28 23:09 编辑

前段时间把浏览器换到了Firefox,Chrome在我的老爷本子上面已经各种抓狂了,不到20个扩展,每次启动都要虐我的U一分钟才能安静下来啊!
然后今天找OpenWRT的资料,发现Firefox访问http://wiki.openwrt.org/只显示网站logo,页面白屏,测试Chrome可以访问
于是乎 Google search...
遇到这个问题的还真不少
解决方案如下
1、Firefox地址栏输入about:config打开配置页面
2、搜索intl.accept_languages,双击该选项
3、把弹出对话框中的zh-cn修改成zh-CN

然后再F5一下刚才不显示的页面~~~

评分

参与人数 1技术点 +1 收起 理由
046569 + 1 谁是强迫症,Firefox or OpenWrt?

查看全部评分

发表于 2014-8-25 12:26:00 | 显示全部楼层
乍一看似乎Firefox没问题,按照RFC 2616上的例子给出的例子是小写:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4
But,Firefox的开发人员肯定忽视了一点,到底中国大陆的语言该如何标识,看例子吧:
http://www.w3.org/International/questions/qa-lang-priorities.en.php
文中清楚的指出是
Due to the absence in the past of a way to refer to script in language tags, servers tended to return text in traditional script if your language setting said zh-TW (Chinese as spoken in Taiwan), and in simplified script if your settings said zh-CN (Chinese as spoken in Mainland China). If your settings said zh-SG (Chinese as spoken in Singapore) or zh-HK (Chinese as spoken in Hong Kong), it is less clear that you would get back what you expect (normally simplified and traditional Chinese, respectively).]

测试下:
  1. curl http://wiki.openwrt.org/ -I -H "Accept-Language: zh-cn"
复制代码

HTTP/1.1 500 Internal Server Error
  1. curl http://wiki.openwrt.org/ -I -H "Accept-Language: zh-CN"
复制代码

HTTP/1.1 200 OK

评分

参与人数 1娱乐豆 +3 收起 理由
貓咪燒香 + 3 感谢补脑

查看全部评分

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|云伴侣 ( 粤ICP备14022677号-1 )| 亚丁云旗下站点

GMT+8, 2024-4-29 11:20

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表