当前位置:网站首页>Browser cache execution process
Browser cache execution process
2022-06-13 00:11:00 【PS cool tutorial】
HTTP Fields related to page caching in the protocol , Let's meet first :
header | explain |
---|---|
Expires | Cache expiration date and time |
Cache-Control | Set cache related configuration information |
Last-Modified | Last modification time of the requested resource |
ETag | The current value of the entity tag of the request variable , For example, the file MD5 value |
(1) The user sends a request to the server through the browser for the first time to obtain data , The client has no corresponding cache , So you need to send request Request to get data ;
(2) After the server receives the request , After obtaining the data of the server and the permission of the server cache , return 200 And attach the corresponding resources and cache information on the response header ;
(3) When the user accesses the same resource again , The client will search the cache directory of the browser for the existence of the response cache file
(4) If the corresponding cache file is not found , Then go (2) Step
(5) If there is a cache file , Next, judge whether the cache file is expired , The criterion of expiration is (Expires),
(6) If it doesn't expire , Then directly return data from the local cache for display
(7) If Expires Be overdue , Next, you need to determine whether the cache file has changed
(8) There are two criteria for judging , One is ETag(Entity Tag), One is Last-Modified
(9) The judgment result is that there is no change , The server returns 304, Get data directly from the cache file
(10) If the judgment has changed , Get data from the server again , And negotiate according to the cache ( Whether the server needs to set the cache data ) To cache data .
边栏推荐
- How about opening a securities account in flush? Is it safe or not
- 如何快速查询手机号码归属地和运营商
- Based on three JS offshore wind power digital twin 3D effect
- 分公司能与员工签劳动合同么
- Do you have to read for PMP?
- Introduction to business rules service on SAP Business Technology Platform (BTP)
- PLC也能制作小游戏----Codesys编写猜数字小游戏
- How to publish OSM maps locally and customize the mapping
- PMP test experience
- Explanation and practice of implicit transformation and implicit parameters in Scala
猜你喜欢
【Matlab】符号计算
How to gracefully solve the offset problem of Baidu and Gaode maps in leaflet
Information collection for network security (2)
Case sharing of online real queuing system reconfiguration -- practical part
Is the newly graduated college student taking BEC or PMP? PM who wants to transfer to another job in the future
A detailed explanation of synchronized
H5時代leaflet中還在用DivIcon?
What occupation is suitable for PMP?
Why study PMP?
PLC can also make small games ----- CoDeSys can write small games of guessing numbers
随机推荐
How about opening a securities account in flush? Is it safe or not
Is the newly graduated college student taking BEC or PMP? PM who wants to transfer to another job in the future
Machining Industry MES system Mold Industry MES system CNCl Medium Industry MES System MES code scanning and reporting MES data collection
[matlab] basic operation
Start of u-boot_ Armboot analysis (II)
How to make maputnik, a vector tile matching artifact, support GeoServer
[C] Inverts the binary of a decimal number and outputs it
Apispace empty number detection API interface is free and easy to use
Enterprise wechat H5_ Authentication, H5 application web page authorization login to obtain identity
Start of u-boot S analysis (IV)
On the parameters of main function in C language
Start blogging
【Matlab】矩阵操作
[hcie discussion] rr-a
Memory address mapping of u-boot
支持Canvas的Leaflet.Path.DashFlow动态流向线
SAP UI5 如何通过 manifest.json 文件定义第三方库依赖关系
The e-commerce employee changed the product price to 10% off after leaving the company, and has been detained
How does the PMP handle the withdrawal?
【Matlab】基础运算