烦人的趋势 - 备用域上的样式表 - Firefox 问题

发布于 2024-08-01 18:26:40 字数 394 浏览 3 评论 0原文

是我一个人还是有这样的网站:
http://www.infoq.com/news/2009/04/fubu- mvc

经常在没有样式的情况下加载,因为作者将样式表放在:
http://cdn1.infoq.com/styles/style.css

我知道这一点是现在处理 css、图像和 javascript 文件的流行方式。 但我似乎总是遇到这个问题。 这只是火狐浏览器的问题吗?

Is it just me or does a site like:
http://www.infoq.com/news/2009/04/fubu-mvc

often load without a style, because the author put the stylesheet over on:
http://cdn1.infoq.com/styles/style.css

I know this is all trendy way to do css, image and javascript files now. But I seem to bump into this issue all the time. Is it only a Firefox issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

路弥 2024-08-08 18:26:40

我相信这个问题是因为 Firefox 检查 crossdomain.xml 以查看请求是否被允许,而 IE 无论如何都会抓住它。

I believe the issue is because firefox checks for crossdomain.xml to see if the request is allowed, and IE just grabs it regardless.

·深蓝 2024-08-08 18:26:40

我只是将源代码保存在本地并进行了测试。 似乎当样式没有出现时,LINK 元素解析为:

<link rel="stylesheet" type="text/css" media="screen" href="http://cdn3.infoq.com/styles/style.css;jsessionid=2BAD2D184D56C3163ADC70B99E711F47" />

..重要的部分是“;jsessionid....”,它使 css 无法使用。

重新加载时,该 jsessionid 显然会因某种原因而起作用,并且 LINK 元素通常解析为:

<link rel="stylesheet" type="text/css" media="screen" href="http://cdn4.infoq.com/styles/style.css" />

我不确定实际上是什么导致 jsessionid 不起作用,然后重新加载......但这似乎是以某种方式成为罪魁祸首。 另外,我在 IE7 和 Safari 中也有过同样的经历……所以绝对不是浏览器特定的事情。

I just saved the source locally and tested it out. It seems that when the styles do not appear, the LINK element is resolving as:

<link rel="stylesheet" type="text/css" media="screen" href="http://cdn3.infoq.com/styles/style.css;jsessionid=2BAD2D184D56C3163ADC70B99E711F47" />

..the important part being the ';jsessionid....' which is knocking the css out of commission.

On a reload, that jsessionid apparently kicks into action for some reason, and the LINK element resolves normally as:

<link rel="stylesheet" type="text/css" media="screen" href="http://cdn4.infoq.com/styles/style.css" />

I'm not sure what is actually causing the jsessionid to not work, then work on reload...but that seems to be the culprit in one way or another. Also, I had the same exact experience in IE7 and Safari...so definitely not a browser specific thing.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文