Apache 正在更改正在提供的文件的内容
Apache is changing the contents of a file being served
这让我发疯。
不知何时 apache 提供以下文件:
$().ready(function(){
hideDataSetSelection();
var selector = "select#interface";
alert($(selector + "").val());
});
function hideDataSetSelection(){
$("div#dataBtn").hide();
}
function showDataSetSelection(){
$("div#dataBtn").show();
}
abc
xyz
123
456
实际输出如下:
function hideDataSetSelection(){
$("div#dataBtn").hide();
}
function showDataSetSelection(){
$("div#dataBtn").show();
}
$().ready(function(){
hideDataSetSelection();
var selector = "select#interface";
alert($(selector + " option:selected").val());
al
其中实际上包含文件的 'previous' 版本的内容。
这似乎只发生在以 js
或 json
结尾的文件中。根据文件的内容,输出会被打乱。我只能想象 Apache 正在错误地缓存文件或其他...
这是在 Virtualbox 环境中。
知道这个问题的原因吗?
我的问题已通过关闭 sendfile 得到解决。似乎这里描述了同样的问题:
Vagrant/VirtualBox/Apache2 Strange Cache Behaviour
这让我发疯。
不知何时 apache 提供以下文件:
$().ready(function(){
hideDataSetSelection();
var selector = "select#interface";
alert($(selector + "").val());
});
function hideDataSetSelection(){
$("div#dataBtn").hide();
}
function showDataSetSelection(){
$("div#dataBtn").show();
}
abc
xyz
123
456
实际输出如下:
function hideDataSetSelection(){
$("div#dataBtn").hide();
}
function showDataSetSelection(){
$("div#dataBtn").show();
}
$().ready(function(){
hideDataSetSelection();
var selector = "select#interface";
alert($(selector + " option:selected").val());
al
其中实际上包含文件的 'previous' 版本的内容。
这似乎只发生在以 js
或 json
结尾的文件中。根据文件的内容,输出会被打乱。我只能想象 Apache 正在错误地缓存文件或其他...
这是在 Virtualbox 环境中。
知道这个问题的原因吗?
我的问题已通过关闭 sendfile 得到解决。似乎这里描述了同样的问题: Vagrant/VirtualBox/Apache2 Strange Cache Behaviour