Difference between no-cache and must-revalidate

前端 未结 4 959
时光说笑
时光说笑 2020-11-28 17:50

From the RFC 2616

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.1

no-cache

If the no-cache directive does not spe

4条回答
  •  北海茫月
    2020-11-28 18:32

    I think there is a difference between max-age=0, must-revalidate and no-cache:

    In the must-revalidate case the client is allowed to send a If-Modified-Since request and serve the response from cache if 304 Not Modified is returned.

    In the no-cache case, the client must not cache the response, so should not use If-Modified-Since.

提交回复
热议问题