IIS重写:为什么不返回新数据
我使用下面的重写规则从另一台服务器获取数据,它第一次返回结果。但是当我更新/添加数据时,我的API仍然返回以前的数据(没有更新的数据)。但大约30秒后,当我再次点击API时,它会返回更新的数据 当我使用直接URL()时,它工作正常 我不知道我错过了什么。请帮我找出问题所在IIS重写:为什么不返回新数据,iis,url-rewriting,Iis,Url Rewriting,我使用下面的重写规则从另一台服务器获取数据,它第一次返回结果。但是当我更新/添加数据时,我的API仍然返回以前的数据(没有更新的数据)。但大约30秒后,当我再次点击API时,它会返回更新的数据 当我使用直接URL()时,它工作正常 我不知道我错过了什么。请帮我找出问题所在 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Frontend Router" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(qosapi)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="^qosapi/(.*)" />
<action type="Rewrite" url="http://172.20.20.23:3000/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
这是一个反向代理缓存问题。我刚刚禁用了缓存,现在它工作得非常好 请参见下图: