Windows 主机 (Plesk) 帮助

我们尽最大努力为您翻译此页。 也可以使用英语页面。

使用clientCache启用我的Windows主机账户上的缓存

有了我们的Windows主机账户,您可以创建缓存规则,通过在Web.config文件中使用clientCache来提高网站的速度。

微软对这里实施clientCache指令,对这里的元素以及更详细的信息。

示例

Microsoft使用Web.config中的以下示例代码来启用缓存:

配置> system.webServer > staticContent > clientCachecacheControlMode =“ UseExpires” httpExpires =“ Tue,2038 20 Jan 19 03:14:07 GMT” / > / staticContent > /system.webServer > / configuration >

这会将您定义为静态的内容缓存到2038年1月19日。