· One min read
浏览器的回流与重绘
· One min read
flex,grid中ellipsis不生效
· One min read
小程序使用svg字体图标
· One min read
移动端适配px,rem,vw,以及1px问题
· One min read
git协作工作流
· One min read
浏览器http1.0,http1.1,http2,http3协议的区别
· One min read
浏览器缓存机制
· One min read
总结
1.根据相关字段判断是否命中强缓存,如果命中,就直接使用缓存了。
2.如果没有命中强缓存,就发请求到服务器检查是否命中协商缓存。
3.如果命中协商缓存,服务器会返回 304 告诉浏览器使用本地缓存。
4.否则,返回最新的资源。
相关参考
ts实现valueOf
· One min read
前端开发学习资料整理
· One min read
基础知识及背景
The web and web standards - Learn web development | MDN (mozilla.org)
How the web works - Learn web development | MDN (mozilla.org)
Populating the page: how browsers work - Web Performance | MDN (mozilla.org)
前端开发入门教程
Front-end web developer - Learn web development | MDN (mozilla.org)
CSS基础知识
How CSS works - Learn web development | MDN (mozilla.org)
BEM — Block Element Modifier (getbem.com)
Mastering margin collapsing - CSS: Cascading Style Sheets | MDN (mozilla.org)
Block formatting context - Developer guides | MDN (mozilla.org)
The stacking context - CSS: Cascading Style Sheets | MDN (mozilla.org)