使用clientCache在我的Windows主機帳戶啟用快取
有了我們的Windows主機帳戶,您可以在Web.config
檔案中使用clientCache建立快取規則,以加快網站速度。
微軟對這裡實施clientCache
指令,對這裡的元素以及更詳細的信息。
範例
Microsoft在Web.config中
使用下列範例程式碼啟用快取:
設定> system.webServer >內容> clientCachecacheControlMode =“ UseExpires” httpExpires =“ Tue,2038 Jan 138 03:14:07 GMT” / > / staticContent > /system.webServer > / configuration >
這會快取您定義為靜態的內容,直到2038年1月19日為止。