The problem of not allowing browser caching_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:13
Original
1204 people have browsed it

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

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