HTML Caching

Hi,

How can I stop the Web Core html files from being cached in IIS 10. I am using auto-increment version but the site is still showing a previous version of the html of my main page. The latest js version of the app is being run so somehow the caching is not being applied to Index.html.

My web.config caching section is:

        <caching enabled="true" enableKernelCache="true">
         <profiles>
            <add extension=".html" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" />
         </profiles>
      </caching>

I have also tried:

  <add extension=".html" policy="DisableCache" kernelCachePolicy="DisableCache" duration="00:00:30" />

Any help greatly appreciated.

Thanks,

Ken

Does it make a difference when you add the compiler directive DEBUG in your main .pas file?
Add in project.pas:
{$DEFINE DEBUG}

Ii is compiled in release mode and I have:

{$IFDEF DEBUG}
  EAPBaseURL='http://localhost:2001/tms/xdata';
{$ELSE}
  EAPBaseURL='https://mysite.com:2001/tms/xdata';
{$ENDIF}

Strangely this has started working correctly now. I am guessing that there was some default settings in IIS that had to expire first!