Thoughts and questions about ie cache and Ajax

Source: Internet
Author: User

Ajax asynchronous requests are used in onmouseover during project debugging,
The first time the page is loaded, the mouse moves to a link and the onmouseover is triggered successfully.
When the mouse moves to another link to trigger onmouseover, the original connection is displayed.
It's strange that the Internet Explorer caches the information at last,
Because the first request was made, the request is still the same URL.
The asynchronous page is not triggered because the page is cached.

Solution:
Add a random number to the parameters in the URL so that the URLs of the pages in each request are different,
This avoids ie caching.
Url = URL + "& num =" + math. Round (math. Random () * 10000 );

Ajax is good, but sometimes it seems that, in order to consider PV and user experience, you have to sacrifice some resources.
Here we are PV> experience, alas ......

I don't know if the page for Ajax asynchronous requests is on the webmaster. Does Alexa calculate PV ....
If any hero knows this, I will not be able to give you some advice. I would like to thank... O (∩ _ ∩) o...

 

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.