Louiszhai.github.io
Louiszhai.github.io copied to clipboard
请教:http://louiszhai.github.io/2017/04/07/http-cache/ 中的启发式缓存
嗨大佬,我想咨询一下,启发式缓存算法有区分响应类型吗?我多次刷新测试好像对 html 是无效的?
html都会走请求协商
页面加载的首个html的请求比较特殊,浏览器一般会携带默认的请求头字段,304会更多些,200 from cache这种一般不触发
这个有对应的标准吗?只有HTML会这样?
只有第一个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 .
应该有标准的,你可以翻看下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 .