Home >Web Front-end >HTML Tutorial >Browser cache problem_html/css_WEB-ITnose

Browser cache problem_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:10:401064browse

If you do not explicitly specify in the web page, the browser will cache it by default. Do general web pages need to be cached? If you need to modify a js after publishing, do you need to modify the name of the js? Otherwise, wouldn't it be because of caching problems that the client cannot get the latest modified js?


Reply to the discussion (solution)

Adding a parameter when referencing an external JS file can solve the problem. Change the parameter value after modifying the file. For example src="abc.js?v=123"

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