The concept of cache, and how to implement caching (Etag and last-modified priority)

https://www.cnblogs.com/chenqf/p/6386163.html

1. HTTP caching :

  Forced Cache: Cache-Control: public / private / no-cache / no-store / max-age = xxx

       Expires expiration time, an absolute time server time there is local time inconsistency will lead cause cache invalidation

  Negotiation cache: Etag <----> If-None-Match

         Last-modify<----->If-Modify-since

  Priority: Cache-Control> Expires> Etag> Last-modify

 

2. The browser's cache : webStorage (localStorage, sessionStorage)

        cookie

Guess you like

Origin www.cnblogs.com/zhuMother/p/12200042.html