Refresh data loading after ie page rollback

Source: Internet
Author: User

After a Web page is published, a cache file is generated in the Temporary Folder after the page is browsed for the first time, in this way, ie will read the page from the cache next time or after accessing the page through the backend instead of entering the page generated in the background. This improves the efficiency but also leads to bugs, this is because a problem may occur when data needs to be updated. Sometimes debugging also finds that page_load is not executed at the same time when you enter the page.

There are two ways to solve this problem:

First, you can force refresh when loading the page. You can refresh the page and generate new data by adding the following statement to the page_load function in the background.

Response. cache. setcacheability (httpcacheability. nocache );

Another idea is to disable reading data from the Cache during page loading by adding the following statement to the

<Meta http-equiv = "Pragma" content = "no-Cache">

For personal comparison, the second method is recommended.

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.