416要求的范围不合适 [英] 416 Requested Range Not Satisfiable

查看:279
本文介绍了416要求的范围不合适的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文:我使用的软件包叫做社会引擎。这是非常马车。

Context: I am using a software package called Social Engine. It is extremely buggy.

不管怎样,我问(即使支付)社会引擎的人做一个升级,当他们终于这样做了,我登录到该网站,发现样式都不见了。我开了支持票和所有他们告诉我的是,这是一个416错误并联系我的ISP。

Anyway, I asked (paid even) the Social Engine people to do an upgrade and when they finally did so, I logged into the site and noticed that the styles were all missing. I opened a support ticket and all they told me was that it was a 416 error and to contact my ISP.

此错误是由测试直接链接到位于在软件可写文件夹中的CSS文件中。

This error was found by testing the direct link to the CSS files which are located in a writable folder in the software.

<一个href=\"http://ministersdev3.themonastery.org/application/css.php?request=application/themes/monastery-theme/theme.css&c=6\">http://ministersdev3.themonastery.org/application/css.php?request=application/themes/monastery-theme/theme.css&c=6

我开始做我的研究才发现这是一种极为罕见的错误,我不能看到转范围请求关闭我的Ubuntu 10.10的Linode服务器上的任何建议(运行最新版的Apache和PHP5安装APC扩展)。也许这是一个软件问题?好歹与APC的缓存工作?我在这个软件重新缓存到60秒,并确保它使用APC。仍然没有骰子。

I started doing my research only to find it's an extremely rare error and I couldn't see any suggestions for turning range requesting off on my Ubuntu 10.10 Linode server (running latest Apache and PHP5 with APC extension installed). Perhaps it's a software issue? Someway the caching with APC is working? I reset the caching in this software to 60 seconds and made sure it was using APC. Still no dice.

它说的是他们的软件可能会做,我需要寻找到补丁?

Is it something their software may be doing that I would need to look into patching?

推荐答案

这个问题可能是由于您的浏览器已经缓存在原来的CSS文件,并试图要求新文件的字节范围。例如,见与Chrome浏览器这个bug。

The issue could be due to your browser having cached the original CSS files and trying to request byte ranges of the new files. See for example this bug with Chrome.

至于禁用范围请求,它可能不是必要的,如果你清除浏览器缓存,但是如果你需要它,你可以尝试以下Apache的配置:

As far as disabling range requesting, it might not be necessary if you clear your browser cache, but if you need it you could try the following Apache config:

Header unset Accept-Ranges

这会告诉客户,他们不能使用范围请求头,请求文件的字节范围。

This will tell clients that they cannot use the Range request header to request byte ranges of your files.

这篇关于416要求的范围不合适的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆