我的任务是提高网站性能,当我查看服务器响应时,我得到了 364kb 的纯恐惧响应数据。
首先,我想兑现应用程序的静态数据。我有 Styles 文件夹和 /images、site.css 里面。为此,我在 Web.config 中有代码。
<configuration>
<location path="~/Styles">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseExpires"
httpExpires="Tue, 19 Jan 2038 03:14:07 GMT" />
</staticContent>
</system.webServer>
</location>
</configuration>
但是当我用萤火虫检查响应时,我得到了相同的 364kb 邪恶,并且在 2038 年没有到期日期。
我做错什么了?
我没有使用 IIS 或其他任何东西。只有手动 web.config,只有铁杆。