Force the browser to reload the Refresh page when the fallback button is clicked

Source: Internet
Author: User

A recent scenario in the project addresses this issue, with the first response being that the header control estimate is not working, the browser is Chrome, and the browser does not re-request the server or re-renders the page when you click Rewind. So the meta information in the server header or page does not work. In this way, the solution is positioned in the front-end to handle, with the browser's local storage set a temporary flag bit, both page 1 request to page 2 o'clock, on page 2 to write the flag, on page 1 do check whether there is a flag bit to perform reload refresh judgment. The idea is clear, because the project supports the H5 environment, if you want to universal all browsers, such as the use of cookies can achieve the same purpose.

Force the browser to reload the Refresh page when the fallback button is clicked

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.