What is the difference between no-cache and no-store in Cache-control?

后端 未结 3 1950
暗喜
暗喜 2020-12-04 10:11

I don\'t find get the practical difference between Cache-Control:no-store and Cache-Control:no-cache.

As far as I know, no-store

3条回答
  •  眼角桃花
    2020-12-04 10:54

    But what is that check about?

    Exactly checking Last-Modified or ETag. Client would ask server if it has new version of data using those headers and if the answer is no it will serve cached data.


    Update

    From RFC

    no-cache
        If the no-cache directive does not specify a field-name, then a cache MUST NOT use
     the response to satisfy a subsequent request without successful revalidation with the
     origin server. This allows an origin server to prevent caching even by caches that   
     have been configured to return stale responses to client requests. 
    

提交回复
热议问题