Question subject: Re: Solution to AJax Cache problem with Internet Explorer
Posted: Wed Mar 03, 2010 11:54 am
Joined: Wed Mar 03, 2010 11:47 am Posts: 1 Has thanked: 0 time Have thanks: 1 time
hi,
some of the code mentioned above is for the server script that recieves the ajax. Unfortunately its the server that gives the headers, so where ever you url in ajx is pointing to you have to place those headers.
response.setHeader(..... i think is for jsp scripts (on the recieving server) and header("..... i for php scripts (on the recieving server).
having a look at your code, you should probably have a look at using jQuery javascript framework. Its as 100% cross browser support as your going to get.
if you use jquery the code is as simple as: $.getJSON('http://some.place.com',{ var1:'this is var', var2:'this is var2' },myCallbackFuncion);
and it will work where ever ANY browser supports ajax.
hope this helps
For this message the author coombesy has received gratitude : msi_333
combuilder
Question subject: Re: Solution to AJax Cache problem with Internet Explorer
Posted: Wed Mar 10, 2010 3:35 pm
Joined: Wed Mar 10, 2010 1:51 pm Posts: 1 Has thanked: 0 time Have thanks: 0 time
Can you show a little example, please?
LarsGuitars
Question subject: Re: Solution to AJax Cache problem with Internet Explorer
Posted: Sat Nov 06, 2010 2:50 am
Joined: Sat Nov 06, 2010 2:44 am Posts: 1 Has thanked: 0 time Have thanks: 0 time
Just wrote a blog on this exact issue only using ExtJS ( http://thecodeabode.blogspot.com/2010/10/cache-busting-ajax-requests-in-ie.html)
aside from forcing the Pragma: nocache header, you can add additional query string params the the requested url. The article gives examples on how to do this using POST params via javascript