前端缓存总结 前端用于缓存的关键字段 program, cache-control, expires last-modified, if-modified-since, etag, if-none-match 1、last-modified, if-modified-since 2、etag,if-none-match 前端缓存的分类 静态资源文件,如图片,文件等 静态数据, 比如省市区,性别等 动态数据, 比如用户信息 列表数据 前端缓存分为 HTTP缓存 和 浏览器缓存; 图片引用来源:https://www.jianshu.com/p/256d0873c398 前端用于缓存的关键字段 program, cache-control, expires 都是控制网页缓存的,使用强缓存时,就有限判断缓存是否过期,如果不过期就直接返回。如果过期,就进行协商缓存处理。 <meta http-equiv="Content-Type" content