当前位置:网站首页>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 :
边栏推荐
- Account management, database building and four engines + cases of MySQL
- Law of Large Numbers
- NLP:Transformer在NLP自然语言领域的简介(预训练技术)、NLP模型发展(ELmo/GPT/BERT/MT-DNN/XLNet/RoBERTa/ALBERT)、经典案例之详细攻略
- 3 - wire SPI Screen Drive
- flutter系列之:flutter中的flow
- Interface test framework practice (I) | requests and interface request construction
- Law of Large Numbers
- 每日刷题记录 (五)
- Memcached foundation 3
- Keepalived 实现 Redis AutoFailover (RedisHA)15
猜你喜欢
JVM 的指针压缩
通过Rust语言计算加速技术突破图片识别性能瓶颈
XSS攻击笔记(上)
The most difficult 618 in history, TCL won the first place in both jd.com and tmall.com shares in the TV industry
CLIP:从自然语言监督中学习可迁移的视觉模型
Custom class loader encrypts and decrypts classes
Esp32-solo development tutorial to solve config_ FREERTOS_ UNICORE problem
Esp32 experiment - self built web server distribution network 02
ML:机器学习工程化之团队十大角色背景、职责、产出物划分之详细攻略
Amazon elasticache quickly builds a cache service cluster, which is fast
随机推荐
LeetCode 142. Circular linked list II
Ymal文件的增删改查
leetcode 1143. Longest common subsequence (medium)
Encapsulation of unified result set
UVM in reporting classes_ report_ Get of server_ severity_ Count and get_ Server usage
美团:踩雷好几年,才总结出的数据治理避坑攻略
Topolvm: kubernetes local persistence scheme based on LVM, capacity aware, dynamically create PV, and easily use local disk
idea 插件开发一些异常处理
Pointer compression for JVM
1.44寸TFT-LCD显示屏取模教程
memcached基础5
buuctf-pwn write-ups (6)
3线spi屏幕驱动方式
30《MySQL 教程》MySQL 存储引擎概述
在连接数据库的时候遇到了点问题,请问怎么解决呀?
Keepalived 实现 Redis AutoFailover (RedisHA)13
Markdown table (consolidated)
Is it safe to open a securities account online? Is it reliable to speculate in stocks by mobile phone
疫情期间居家办公的总结体会 |社区征文
The listing of Fuyuan pharmaceutical is imminent: the net amount raised will reach 1.6 billion yuan, and hubaifan is the actual controller