Loading

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!

posted @ 2011-07-07 13:13  today4king  阅读(243)  评论(0编辑  收藏  举报