JS深入浏览器缓存分强缓存和协商缓存

Open
#6 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

The issue contains notes about strong browser caching, including Expires and Cache-Control, but names no file, documentation entry point, or test. Clarify where this material should be added or corrected and what completion should mean before starting.

Written by the indexing model from the issue text.

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. 缓存过期之后,不管资源有没有变化,都会重新发起请求,重新获取资源
Dominant language
HTML
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AstralBit/NOTE

All issues in AstralBit/NOTE

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.