I am trying to get some data using the Ajax GET method, it is very much in all browsers except IE Good works. It caches the call for the first time in IE and caches it, I need to stop it. I have tried the following methods in my code but are still unable to solve the problem
1) Global caching set = $ .ajaxSetup ({cache: false}) in coding $;;
2) Put it in the meta tag
& lt; Meta http-equiv = 'cache-control' content = 'no-cache' & gt; & Lt; Meta http-equiv = 'Finished' content = '0' & gt; & Lt; Meta http-equiv = 'pragma' content = 'no-cache' & gt;
3) Using the post instead of the GET method
$ .ajax ({cache: false, type: "POST", url: '/ XYZURL / '+ ID, Data Type: "Jason", Async: Fotal, Success: Function (Response) {$ scope.data = Response;},
4) In my code Bit included but no success
if (url.replace ("?") = Url) url = url + "& rand =" + new date (). GetTime (); Else url = url + "? Rand =" + new date (). GetTime ();
Please help me with this problem, it has been annoying me for the last 2 days Thank you in advance.
var browser = window.navigator.userAgent; Var msie = browser.indexOf ("MSIE"); If (MSI> 0) {var Remote ID = index.entity.id; Var ie_fix = new date (). GetTime (); $ .jax ({cache: incorrect, type: "gET", url: '/ xyzURL /' + id, data type: "jason", async: truth, success: work (feedback) {$ scope.data = Response; }, Error: Function (JXHR, ErrorPrint) {Warning ("JXHR");}}); } And {$ scope.data = datafactory.show ({id: index.id}); }
etw my code is angular based, i used jquery ajax for all service calls but tried to apply coyon and ajax call based on browser and he My problem has been resolved. I know that this can not be the right approach, but the only solution that works for me
Comments
Post a Comment