Home >Web Front-end >HTML Tutorial >Browser cache problem_html/css_WEB-ITnose
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?
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"