Home > Web Front-end > JS Tutorial > A brief analysis of showModalDialog data caching problem (solved by disabling browser caching)_javascript skills

A brief analysis of showModalDialog data caching problem (solved by disabling browser caching)_javascript skills

WBOY
Release: 2016-05-16 17:29:38
Original
1201 people have browsed it

If you want to display the latest data, you need to set it up on the page and cancel the cache.

Add the following code in the Head tag of the showModalDialog page:

This way the page will not be cached. This ensures that after the data is modified, the latest data will be displayed when the page is opened again.

HTML aspects

Prohibit the browser from loading from the local cache Read the page.
Web pages are not saved in the cache and the page is refreshed every time you visit.

Same meaning as above, the page must be reloaded

The expiration time of the web page in the cache is 0. Once the web page expires, it must be resubscribed from the server.

.NET aspect
Response.Expires = -1;

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template