Hi
I have lots of AJAX on our site and works in all (well probably most)
browsers except IE.
IE7,8,9,10,11 appears to think the data is the same so never does a new
AJAX call, you can search on Google AJAX IE cache and you will find lots
of solutions like add time stamp on AJAX URL but as we are using WebDev
this is not so easy, unless some clever person says do this ....
Now a check box or function in Webdev would have been nice:-
// New Function May be ?
BrowserAjaxNoCache to tell the browser not to cache AJAX calls or WebDev
puts a timeStamp on each call.
or
BrowserAddAJAXTimeStamp
I have tried:-
// Fix IE AJAX Cache or Not
IF BrowserType() = BrowserTypeInternetExplorer OR BrowserType() =
BrowserTypeUnknown THEN
sNoCache is string=[
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META http-equiv="cache-control" content="no-cache">
]
MyPage..HTMLHeader = sNoCache
END
I have also tried:-
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
and
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" >
and
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" >
Now this is variable as to whether it works, if tested locally, yes but
not when published to the server.
My last attempt is:-
// Fix IE AJAX Cache or Not
IF BrowserType() = BrowserTypeInternetExplorer OR BrowserType() =
BrowserTypeUnknown THEN
sNoCache is string=[
<META http-equiv="cache-control" content="no-cache; private;
no-store; must-revalidate; max-stale=0; post-check=0; pre-check=0;
max-age=0">
]
MyPage..HTMLHeader = sNoCache
END
Which doesn't work.
Any one out there got a simple solution in WebDev?
Thanks
Tony