IE8 with Ajax access can not be refreshed every time the problem _ajax related

Source: Internet
Author: User

Introduction to Ajax

AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML).

AJAX is not a new programming language, but a new way of using existing standards.

AJAX is the art of exchanging data with the server and updating parts of the Web page without reloading the entire page.

IE8 with Ajax access can not be refreshed each time the issue is described as follows:

Recently found that using AJAX to access the background, with IE8 access, the first time you can return the value of the normal, the following will not perform the background, always return the results of the first visit.

There is no problem with IE9,IE10, Chrome, and so on browsers.

After testing, it is found that the IE8 cache the results of the first fetch, so the second time will not be submitted to the background.

After the AJAX request plus a random number, so that each request is inconsistent, IE will not get the results from the cache.

After the AJAX request, add "... &random=" +math.random (); So each time the request is inconsistent, IE will not take the result from the cache.

The above is a small set to introduce the IE8 with Ajax access can not be refreshed every time the problem, I hope to help you, if you have any questions please give me a message, small series will promptly reply to everyone. Here also thank you very much for the cloud Habitat Community website support!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.