当前位置:网站首页>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 .
边栏推荐
- Several interview questions in TCP three grips and four swings
- Actual combat | UI automation test framework design and pageobject transformation
- 【Matlab】多项式计算
- The most complete preview! Huawei cloud wonderful agenda collection
- Buuctf-[ciscn 2019 preliminary]love math
- leaflet如何加载10万条数据
- Online examination questions for September examination of financial management
- 如何实现OSM地图本地发布并自定义配图
- Is the PMP training organization an actual training?
- Design MySQL table structure for message queue to store information data
猜你喜欢

Free lottery --- PMP renewal PDU | PMP knowledge map

PMP test experience

The difference between caching and buffering

【HCIE论述】STP-A

MySQL index

Enterprise wechat H5_ Authentication, PC website, enterprise wechat scanning code, authorized login

Talent Weekly - 5

Will PM (Project Manager) take the PMP Exam?

Tsinghua-Bosch Joint ML Center, THBI Lab:Chengyang Ying | 通过约束条件风险价值实现安全强化学习

【Matlab】三维曲线与三维曲面
随机推荐
vs studio_ How to use scanf in 2022
Day 3 of jsbom and DOM learning
你真的会用PostGIS中的buffer缓冲吗?
The whole process from entering URL to displaying page (interview)
浏览器缓存的执行流程
Start blogging
[matlab] matrix
Several interview questions in TCP three grips and four swings
Start of u-boot S analysis (III)
Do you have to read for PMP?
[hcie discussion] multicast igmp-a
如何让矢量瓦片配图神器maputnik支持 geoserver
Lower interest rates lead to higher bond prices
How to gracefully solve the offset problem of Baidu and Gaode maps in leaflet
Enterprise wechat H5_ Authentication, PC website, enterprise wechat scanning code, authorized login
电商员工离职后将产品价格改为1折出售,已被刑拘
【Matlab】二维曲线
What occupation is suitable for PMP?
63. 不同路径 II
[matlab] basic operation