what’s the difference between Expires and Cache-Control headers?

后端 未结 7 946
心在旅途
心在旅途 2020-12-02 04:22

What’s the difference between Expires and Cache-Control headers?

7条回答
  •  天命终不由人
    2020-12-02 04:45

    Heroku devcenter has an excellent article on this subject.

    Quoting from it,

    While the Cache-Control header turns on client-side caching and sets the max-age of a resource, the Expires header is used to specify a specific point in time the resource is no longer valid.

提交回复
热议问题