Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有一种简单的方法可以将过期标头添加到来自 appharbor 站点的静态内容?我有一堆图像、css 和 javascript 文件,这些文件没有设置过期时间,让我在 yslow 上望而却步。
您可以在 Web.config 中执行此操作:
<system.webServer> <staticContent> <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" /> </staticContent> </system.webServer>