当前位置:网站首页>HTTP cache
HTTP cache
2022-07-29 02:35:00 【Meme_ xp】
What is mandatory caching
Do not initiate http request , Use local cache directly , For example, enter in the browser address bar , Use the browser's refresh button , stay Expires or max-age In the case of the entry into force , Trigger strong cache .
Files that are not frequently modified , Usually use strong cache
Negotiate the cache , Corresponding cache
Before using the local cache , Negotiate with the server first , Check whether the cache file is up to date . Ask the head to carry If-None-Match or If-Modified-Since, You can also carry them all


Negotiate cache related header Field
The negotiation cache is determined by the server whether the cache resource is available , So the client and server communicate through some kind of identification , So that the server can judge whether the request resource can be accessed by cache , This mainly involves the following two groups header Field , These two groups of partners are in pairs , That is, the response header of the first request is attached with a certain field (Last-Modified perhaps Etag), Then the subsequent request will be accompanied by the corresponding request field (If-Modified-Since perhaps If-None-Match), If the response header does not Last-Modified perhaps Etag Field , Then the request header will not have a corresponding field .
边栏推荐
- I want to talk about high concurrency.
- QT qstackedwidget multi interface switching
- 无线振弦采集系统工作流程
- 当Synchronized遇到这玩意儿,有个大坑,要注意
- MySQL驱动中关于时间的坑
- Code implementation - the greatest common factor of polynomials (linear algebra)
- Responsive dream weaving template home decoration building materials website
- How to quickly design a set of cross end components that support rendering rich text content
- 7/28 Gauss elimination to solve linear equations + Gauss elimination to solve XOR linear equations + find the combination number II
- Responsive dream weaving template outdoor camping website
猜你喜欢

Explain the four asynchronous solutions of JS in detail: callback function, promise, generator, async/await

当Synchronized遇到这玩意儿,有个大坑,要注意

Jmeter之BeanShell生成MD5加密数据写入数据库

ES6事件绑定(v-on用法)

DevOps 团队如何抵御 API 攻击?

千万不要把Request传递到异步线程里面,有坑

物联网组件

Day 14: continued day 13 label related knowledge

What should I do if excel opens a CSV file containing Chinese characters and there is garbled code?

线上3d数字展厅制作方案及优点
随机推荐
ES6事件绑定(v-on用法)
详解异步任务:任务的状态及生命周期管理
C语言实现三子棋游戏
工程经济学简答题
4年测试经验,好不容易进了阿里,两个月后我选择了裸辞...
Branch management practice of "two pizza" team
Jmeter之BeanShell生成MD5加密数据写入数据库
密码安全如何保障?安全浏览器如何管理密码?
Rust 列表(Vec)复制
On Multithreading
Kbxxxxx is not necessarily a patch, but also a description of a solution to a problem
一文搞懂 Redis 架构演化之路
Excel uses countif statistics
Summary of knowledge points of Engineering Economics
QT qstackedwidget multi interface switching
无线振弦采集系统工作流程
Waiting queue wait_ queue
主从复制及其原理
裂开了,一次连接池参数导致的雪崩问题
Prometheus + alertmanager message alert