I am trying to use output caching on IIS. Here is the code.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<caching>
<profiles>
<add extension=".php" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="00:00:05" varyByQueryString="userId"/>
</profiles>
</caching>
</system.webServer>
</configuration>
Its working fine but doing it for all PHP files. Is there any way to do only for a specfic file?