What's the difference between Cache-Control: max-age=0 and no-cache?

后端 未结 9 1976
小蘑菇
小蘑菇 2020-11-22 09:32

The header Cache-Control: max-age=0 implies that the content is considered stale (and must be re-fetched) immediately, which is in effect the same thing as

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 09:59

    max-age=0

    This is equivalent to clicking Refresh, which means, give me the latest copy unless I already have the latest copy.

    no-cache

    This is holding Shift while clicking Refresh, which means, just redo everything no matter what.

提交回复
热议问题