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

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

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

相关标签:
7条回答
  • 2020-12-02 05:03

    If you are using a CDN (Cloud Delivery Network) I recommend to use Cache-Control with a max-age time in seconds. For example Cache-Control: max-age=604800. This prevents request-peaks to your origin-server: With "Expires Wed, 30 Oct 20xx 04:37:07 GMT" all browsers will request you at the same time.

    0 讨论(0)
提交回复
热议问题