javascript - Ask a question about the caching mechanism?

WBOY
Release: 2023-03-02 08:46:02
Original
962 people have browsed it

javascript - Ask a question about the caching mechanism?

javascript - Ask a question about the caching mechanism?

As shown in the picture, occasionally when refreshing the page, an error will be reported and jquery cannot be found. Then I saw a string added after the external jqeury, resulting in the file not being found.

How can I not add a string at the end?

Is this front-end control or back-end?

Reply content:

javascript - Ask a question about the caching mechanism?

javascript - Ask a question about the caching mechanism?

As shown in the picture, occasionally when refreshing the page, an error will be reported and jquery cannot be found. Then I saw a string added after the external jqeury, resulting in the file not being found.

How can I not add a string at the end?

Is this front-end control or back-end?

The front-end can also be controlled, and so can the back-end, but now, it is usually the front-end. In order to prevent caching, there are special tools that add a certain number of hashes to the file....

To use hash or time I do this jquery.min.js?_=

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!