JS深入浏览器缓存分强缓存和协商缓存
Open
- Dominant language
- HTML
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
### 强缓存
**状态码200**
**不会向服务器发送请求,从缓存中读取资源,如果响应头有expires、pragma或者cache-control字段,代表这 是强缓存**
1. Expires HTTP/1.0 时间不准
2. Cache-Control HTTP/1.1
3. Cache-Control优先级高,覆盖Expires
4. Cache-Control设置no-cache开启协商缓存
5. 缓存过期之后,不管资源有没有变化,都会重新发起请求,重新获取资源
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.