How to interpret grey items in Firebug Net panel?

回眸只為那壹抹淺笑 提交于 2019-11-30 17:29:26

"Firebug color codes requests that are served from the cache in a lighter gray..."

So the reason the server doesn't see the request is that the client never actually sends it, it simply receives the response from its cache. If you're using jQuery, there is a cache property that you can use on ajax() to prevent AJAX requests from being cached. If you're not using jQuery you can append a dummy parameter to the end of the request URL that has a value of the current time in milliseconds (this is in fact what jQuery does I believe).

url + "?v=" + (new Date()).getMilliseconds()

This should ensure the URL is always unique and prevent the browser from using caching.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!