在IIS中输出caching不适用于WordPress php文件

我启用输出caching的PHP文件

<configuration> <system.webServer> <serverRuntime frequentHitThreshold="1" frequentHitTimePeriod="00:00:30" /> <caching> <profiles> <add extension="*.php" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="00:00:59" location="Any" varyByQueryString="*" /> </profiles> </caching> </system.webServer> </configuration> 

caching适用于打印时间的PHPtesting文件

http://www.ahangbaz.com/time.php

但它不适用于wordpress(date打印在第三行的页面上)

http://www.ahangbaz.com/index.php/4002/omega-el-producto/

我没有在wordpress中使用任何插件。

你需要添加:

 varyByHeaders="x-original-url"