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

HTML caching issue. . . _html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 12:16:33
Original
952 people have browsed it

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"> 
Copy after login

, 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


< frameset id="id" cols="190,*">

< frame name="main" src="MainPage.aspx" scrolling="yes">


<br> <body> <br> <p>Your browser does not support frames. </p> <br> </body> <br>


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! ! !

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