Azure和缓存Xml

Azure和缓存Xml,azure,Azure,我有一个不断更新的XML文件,但是无论我做什么,都无法获得更新的副本。我总是在几个小时内看到它的缓存版本。有没有办法关闭xml缓存?我正在使用azure网站。在这个回答中,我假设您谈论的是输出缓存。要禁用*.xml的输出缓存,只需在web.config中添加一个: <configuration> <system.webServer> <caching> <profiles> <add

我有一个不断更新的XML文件,但是无论我做什么,都无法获得更新的副本。我总是在几个小时内看到它的缓存版本。有没有办法关闭xml缓存?我正在使用azure网站。

在这个回答中,我假设您谈论的是输出缓存。要禁用*.xml的输出缓存,只需在web.config中添加一个:

<configuration>
   <system.webServer>
      <caching>
         <profiles>
            <add extension=".xml" policy="DontCache" kernelCachePolicy="DontCache" />
         </profiles>
      </caching>
   </system.webServer>
</configuration>