“Expires” in http header for static content? how-to

后端 未结 6 1173
温柔的废话
温柔的废话 2021-01-06 08:19

What is the best way to add \"Expires\" in http header for static content? eg. images, css, js

The web server is IIS 6.0; the language is classical ASP

6条回答
  •  感情败类
    2021-01-06 08:54

    I think this is what you're after, It's Content Expiration under HTTP Headers in IIS Manager. I use the pattern of sticking static content under a folder like ~/Resources and setting the expiration on that particular folder to have a much longer life than the rest of the application.

    Here's a link to the full article: IIS 6.0 F1: Web Site Properties - HTTP Headers Tab

提交回复
热议问题