0

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?

Mohan
  • 388
  • 6
  • 22
  • Does this answer your question? [How to configure static content cache per folder and extension in IIS7?](https://stackoverflow.com/questions/2195266/how-to-configure-static-content-cache-per-folder-and-extension-in-iis7) – Justinas May 05 '22 at 06:46

0 Answers0