How to disable cache ajax request!

Target Envirment is a comment ajax loading view.

It will load newest comments after user submit a new comment .

But under IE6 its always cached ,and the reasone is the same url.

And Jquery catche propertiy set to false is not effected.

what simpplest is to add a random to the url make the request diffrent.

Just like:"/ajax/GetComments?ramdon="+(new Date()).getTime()

And another is use Math.random but i think nothing is more uniquess than time :)

How can help you!

作者:KKcat
    
个人博客:http://jinzhao.me/
    
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/jinzhao/p/2099975.html