在客户端用jquery访问php页面,总数返回空字符串
如果在浏览器上直接输入url(get)的话返回正常。
ajax调用如下。
$.ajax({
"type" : "post",
"async" : false,
"dataType" : "json",
"contentType" : "application/json",
"url" : "api/users/getUsers",
"complete" : function(xhr) {
...
Response Headers:
Connection:close
Content-Encoding:gzip
Content-Length:0
Content-Type:text/xml
Date:Tue, 31 Aug 2010 03:16:13 GMT
Server:nginx/0.6.35
Vary:Accept-Encoding
然而某些url又正常返回,有些则返回空,这些url的ttfb特短,只有2ms左右。
但是前几天还好好地,怀疑是否nginx或者fastcgi缓存问题。
求大神解答。