0
我得到了一個任務來提高網站性能,當我看看服務器響應時,我得到了364kb純恐懼響應數據。緩存asp網絡應用程序的靜態數據
首先我要申請現金的靜態數據。 我有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,只有硬核。
'我沒有使用IIS' ...那你在用什麼服務器? – SLaks
如何運行ASP.NET *而不使用*「使用IIS或其他」? – freefaller
ASP.NET開發Web服務器 – makambi