Home  >  Article  >  Web Front-end  >  HTML caching issue. . . _html/css_WEB-ITnose

HTML caching issue. . . _html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:16:33928browse

Our website will be reloaded every time F5 is refreshed. There are many pictures, so loading is very troublesome
But I have seen many websites that can run offline after loading.
Let me make a statement, Our website header file does not add anything like

<META HTTP-EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> <META HTTP-EQUIV="expires" CONTENT="0"> 

, so should it be cached after loading by default? ? But I don’t know why it will reload when I refresh it with F5. . . What is the reason? ? ? ?


Reply to the discussion (solution)

You can consider using frameset and frame to partition the website, as follows
34e9172a925803e007b8e79a0fd51a6b
175f2d6bbacbf03cea59fbb31b894891
909a79c3da443338bd0c89f10162ffed
bbaa45cd8e97bbd8f85f773fbf938edb
275df00b8e8f28198f18252ef1b252bd
eb5f059992a0ae0ef16884cb75644e40
da375e81afd5d6db5efb2fd362c27128
37f861bd36cef5b6406eba87d20a5bab
6c04bd5ca3fcae76e30b72ad730ca86d
e388a4556c0f65e1904146cc1a846beeYour browser does not support frames. 94b3e26ee717c64999d7867364b1b4a3
36cc49f0c466276486e50c850b7e4956
23a17d2cc9873ab460d73d80ccc8d7a4
eb5f059992a0ae0ef16884cb75644e40

This way there is no need to repeat a lot of things when the page refreshes or jumps. Loaded

The browser itself is also caching
You can open debug on f12 to see the http status and description of each request

Isn’t refreshing just a request to the server again! ! !

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