Azure和缓存Xml(Azure and Caching Xml)

编程入门 行业动态 更新时间:2024-10-28 04:17:31
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&

本文发布于:2023-04-29 11:24:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1336249.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缓存   Azure   Caching   Xml

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!