Azure和缓存Xml(Azure and Caching Xml)
我有一个不断更新的XML文件,但无论我做什么,我都无法获得更新的副本。 我总是在几个小时内看到它的缓存版本。 有没有办法关闭xml的缓存? 我正在使用azure网站。
I have an XML file that keeps getting updated, however no matter what I do I can't get the updated copy. I always see a cached version of it for a couple of hours. Is there any way to turn off caching for xml? I am using azure website.
最满意答案
在这个答案中,我假设你在谈论输出缓存。 要禁用* .xml的输出缓存,只需将缓存配置文件添加到web.config:
<configuration> <system.webServer> <caching> <profiles> <add extension=".xml" policy="DontCache" kernelCachePolicy="DontCache" /> </profiles> </caching> </system.webServer> </configuration>In this answer I'm assuming you're talking about output caching. In order to disable output caching for *.xml, simply add a caching profile to your web.config:
<configuration> <system.webServer> <caching> <profiles> <add extension=".xml" policy="DontCache" kernelCachePolicy="DontCache" /> </profiles> </caching> </system.webServer> </configuration>更多推荐
xml,XML,缓存,azure,电脑培训,计算机培训,IT培训"/> <meta name="description&
发布评论