当前位置:网站首页>Browser cache
Browser cache
2022-06-27 01:30:00 【Big drumsticks are best】

Every time the browser makes a request , Both look in the browser cache for the result of the request and the cache identity
Each time the browser gets the result of a returned request, it stores the result and the cache id in the browser cache
The cache will be strengthened at the beginning
Forced caching is to find the result of the request from the browser cache
1, There is no such cache result and cache identity , Force cache invalidation , Then send a request directly to the server ( return 200)
2, There is the cache result and the cache identity , But the result is no longer valid , Force cache invalidation , Then use negotiation cache ,
The browser carries a cache id , Initiate request , If the resources are updated , And then return to the new result , Status code for 200, If the resource is not updated , Then return to 304, You can continue to use the cache file
3, There is the cache result and the cache identity , And this result has not been invalidated , Force cache to take effect , Return the result directly
Force the cache to take precedence over the negotiation cache , If cache is forced (Expires and Cache-Control) Take effect and use the cache directly , If it does not take effect, a negotiation cache is performed (Last-Modified / If-Modified-Since and Etag / If-None-Match), The negotiation cache is up to the server to decide whether to use the cache , If the negotiation cache expires , Then represents the cache invalidation of the request , Retrieve request results , This is then stored in the browser cache ; Return in effect 304, Continue using the cache , The main process is as follows :
边栏推荐
- 【毕业季】角色转换
- 递归是会更秀strtok
- Keepalived 实现 Redis AutoFailover (RedisHA)11
- memcached基础6
- Central Limit Theorem
- uvm中的config机制方法总结(二)
- Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
- Summary of working at home during the epidemic | community essay solicitation
- 在线文本数字识别列表求和工具
- Weibo comments on high performance and high availability architecture
猜你喜欢

Daily question brushing record (V)

Unable to create a folder to save the sketch: MKDIR sketch

Clip: learning transferable visual models from natural language monitoring

Processing of slice loss in ArcGIS mosaic dataset

Bootstrapblazor + FreeSQL actual combat chart usage (2)

世界很大,有人把二维码纹在脖子上

1.44 inch TFT-LCD display screen mold taking tutorial

福元医药上市在即:募资净额将达到16亿元,胡柏藩为实际控制人

Central Limit Theorem

The world is very big. Some people tattoo QR codes on their necks
随机推荐
NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
SystemVerilog simulation speed increase
【系统分析师之路】第六章 复盘需求工程(案例论文)
get_sequencer的用法总结
Account management, database building and four engines + cases of MySQL
Memcached foundation 6
大白话高并发(一)
Kept to implement redis autofailover (redisha) 17
Flink practical problems (VII): no watermark (watermarks are only available eventtime is used)
Esp32 experiment - self built web server distribution network 02
Keepalived 实现 Redis AutoFailover (RedisHA)15
Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
Amazon ElastiCache 飞速搭建缓存服务集群,这才叫快
Kept to implement redis autofailover (redisha) 12
memcached基础1
Generate flow chart with code, and how to use markdown
CLIP:从自然语言监督中学习可迁移的视觉模型
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
leetcode 1143. Longest common subsequence (medium)