Home  >  Article  >  Backend Development  >  javascript - Ask a question about the caching mechanism?

javascript - Ask a question about the caching mechanism?

WBOY
WBOYOriginal
2016-12-01 00:57:04939browse

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?_=

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