前端缓存的方式

  1. Service Workers 【可以缓存资源的请求,参考】
  2. web Storage【LocalStorage/SessionStorage】
  3. IndexedDB【这个相当于浏览器中的数据库,请看官网】
  4. Cache API【这个我没用过,可以看官网,是实验性技术】
  5. Http 缓存头【通过expires 和 cache-control等请求头控制,请看官网 】

你可能感兴趣的:(缓存)