IIS 7.5 How do you add a Dynamic HTTP Expires Header

前端 未结 2 1886
失恋的感觉
失恋的感觉 2020-12-12 07:20

In IIS 7.5, you can add static HTTP Response headers, but I want to add an \"Expires\" header that always specifies a date that is 7 days in the future.

I\'m running

2条回答
  •  感动是毒
    2020-12-12 08:05

    You can only add dynamic expires header using program code.

    Source: The Microsoft IIS Site

    You should use Cache-Control max-age instead, like suggested in the other answer.

提交回复
热议问题