Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8768885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:11:01+00:00 2026-06-13T17:11:01+00:00

I wrote an ajax call but I have a problem with IE web browser

  • 0

I wrote an ajax call but I have a problem with IE web browser because in Chrome, ajaxFunction(1) is working properly (it gets 200 OK on network section of my browser while I am browsering). On the other hand same page with same actions with using IE, function returns 304 error. I tried manually (call.php?which=1) with using IE, it is working. I could not find what is the problem in this case?

PS. My codes are working in manual. I want to know what is my problem with IE browser. Which codes run different in browsers?

Here is some codes:

function ajaxFunction(a)
{
    var ajaxRequest;
    try {
        ajaxRequest = new XMLHttpRequest();
    } catch (e) {
        try {
            ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {
                alert("Your browser broke!");
                return false;
            }
        }
    }
    ajaxRequest.open("GET","call.php?which="+a,true);
    ajaxRequest.send(); 
}

Apart from that,

/* in call.php after connection codes */
$came = $_GET['which'];
mysql_query("UPDATE ...");

Updates

I am using IE 9.0 (update version 9.0.10)

Also I added this code to call.php

header("Cache-Control: no-cache, must-revalidate");

Answer

After using cache-control and cache cleaning of browser it works good.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:11:02+00:00Added an answer on June 13, 2026 at 5:11 pm

    I believe the root cause – and possible solutions – are addressed by these links:

    • Resolve HTTP 304 – not modified in AJAX call made via GWT

    • jQuery AJAX producing 304 responses when it shouldn't

    • https://blog.httpwatch.com/2009/08/07/ajax-caching-two-important-facts/

    Apparently, IE “aggressively caches ajax requests”. The above links should help you work around the problem.

    PS:

    What version of IE is experiencing this problem?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a http handler fro my Jquery ajax call. which is working
I have been working with AJAX for a while now, but in limited and
With the upcoming rise of AJAX applications on the web, I wrote some own
I have a web service that I have published locally. I wrote an HTML
I have a simple question regarding multiple ajax calls, performing each call in sequence.
I've run into a problem with Ajax lately. I'm working on a frontend of
Possible Duplicate: jQuery: Return data after ajax call success I wrote a script which
I have many instances of the same type of problem using jQuery. Probably because
Referring on this question , I have a similar -but not the same- problem..
I have a very strange problem when I using ajax in symfony 1.4. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.