How to disable cache ajax request!
2011-07-07 13:13
281 查看
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!
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!
相关文章推荐
- How to get pure json data by ajax request
- EclipseLink How to disable the shared cache?
- How to disable Cache of Chromium (怎样禁用 Chromium 浏览器的 Cache)
- How To Bypass Local Cache (Disable tx-nocache-copy)
- How to disable firefox cache
- How to disable firefox cache
- How to disable 'withcredentials' in HTTP header with node.js and Request package?
- How to use jquery ajax and android request security RESTful WCF
- How to handle jQuery.ajax(..) JSON request ?
- How to trouble shooting Library cache lock/pin
- How to Disable SSL 2.0 and SSL 3.0 in IIS 7
- HOW to Use QP_PREQ_PUB.PRICE_REQUEST API to Price an Item
- How to Check and Enable/Disable Oracle Binary Options (Doc ID 948061.1)
- Docker: How to enable/disable HTTP Proxy in Toolbox
- How to fix intellisense issues after upgrading to ASP.NET Ajax 1.0 RC
- How to disable directory listing for Jetty's We...
- How To Get Log, Trace Files In OA Framework Pages And Concurrent Request Programs
- How to Ajax auto refresh after x seconds
- How to solve “jQuery not working in AJAX loaded elements”
- How to disable optimization when building WRK for easily debug?