Louiszhai.github.io icon indicating copy to clipboard operation
Louiszhai.github.io copied to clipboard

请教:http://louiszhai.github.io/2017/04/07/http-cache/ 中的启发式缓存

Open Flcwl opened this issue 4 years ago • 5 comments

嗨大佬,我想咨询一下,启发式缓存算法有区分响应类型吗?我多次刷新测试好像对 html 是无效的? image

image

Flcwl avatar Nov 25 '20 16:11 Flcwl

html都会走请求协商

Flcwl avatar Nov 25 '20 16:11 Flcwl

页面加载的首个html的请求比较特殊,浏览器一般会携带默认的请求头字段,304会更多些,200 from cache这种一般不触发

Louiszhai avatar Jan 08 '21 07:01 Louiszhai

这个有对应的标准吗?只有HTML会这样?

Flcwl avatar Jan 09 '21 02:01 Flcwl

只有第一个dom加载的html会这样

Little Rui [email protected] 于2021年1月9日周六 上午10:40写道:

这个有对应的标准吗?只有HTML会这样?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Louiszhai/Louiszhai.github.io/issues/18#issuecomment-757082241, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAFZDKHVG6P2SLEJ3DEMCLSY66YLANCNFSM4UCT3IFQ .

Louiszhai avatar Jan 09 '21 03:01 Louiszhai

应该有标准的,你可以翻看下http规范

louis [email protected] 于2021年1月9日周六 上午11:03写道:

只有第一个dom加载的html会这样

Little Rui [email protected] 于2021年1月9日周六 上午10:40写道:

这个有对应的标准吗?只有HTML会这样?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Louiszhai/Louiszhai.github.io/issues/18#issuecomment-757082241, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAFZDKHVG6P2SLEJ3DEMCLSY66YLANCNFSM4UCT3IFQ .

Louiszhai avatar Jan 09 '21 03:01 Louiszhai