konradb Posted April 1, 2009 Share Posted April 1, 2009 Hi everyone, I am trying to deal with a problem for couple of days already and no success... I have an ajax function that is supposed to wait for a change in one of a database element. At first it gets by ajax part the response '0', 'del' or some other number. If '0', it runs the function once more (by settimeout). For 'del' or other number it redirects us to another page (window.location). Everything works just fine in Firefox or GoogleChrome, just perfect! But here comes IE... It reads the first '0' response (it always is 0 at the beginning) but then it does not see any changes. The function runs again every 2 seconds if there is no change form '0' and runs correct. But the response is still '0' even if I am sure it has changed... Today I find out that it can be a caching problem, so I added to my index.php such lines: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-cache, no-store, must-revalidate"); and also tried with: header("Expires: -1"); header("Cache-Control: no-cache, no-store"); It didn't work and the problem still exists. Maybe some of you solved it once? Waiting for suggestions.. Quote Link to comment Share on other sites More sharing options...
dpacmittal Posted April 1, 2009 Share Posted April 1, 2009 Seeing the code would have helped me to understand and solve the problem. Quote Link to comment Share on other sites More sharing options...
konradb Posted April 1, 2009 Author Share Posted April 1, 2009 thank you so much, but I ve just solved the problem... it was really this cache isssue, but I ve put the expires header not in the right place:) (stupid stupid stupid:P) peace Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.