Home >Web Front-end >HTML Tutorial >The problem of not allowing browser caching_html/css_WEB-ITnose

The problem of not allowing browser caching_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-24 12:25:131263browse

HTTP

I believe everyone knows that not allowing the browser to cache information can be set with the following code
On the page:



Server code:
httpResponse.setHeader("Cache-Control", "no-store");
httpResponse.setDateHeader("Expires", 0);
httpResponse.setHeader("Pragma", "no-cache");

What does the cache information here refer to? Because static files, such as CSS, js, and image files, are originally expected to be cached by the browser

What will be the impact if the above settings are not made?
Thank you!

Reply to discussion (solution)

refers to the image of the page including code. Sometimes after loading a new page using jquery's load method, the page will be cached. When that page is updated When , the cached code is loaded

Statement:
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