您的位置:首页 > 产品设计 > UI/UE

How to disable cache ajax request!

2011-07-07 13:13 330 查看
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!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: