我尝试了很多方法从缓存控制HTTP响应标头中删除私有值,我通过global.asax文件使其成为可能但不幸的是我被要求通过web.config或IIS设置实现这一点。任何人都可以帮我解决这个问题。
我尝试下面的代码,但没有工作。我变得私密了
<add name="Cache-Control" value="no-cache, no-store, must-revalidate, pre-check=0, post-check=0, max-age=0, s-maxage=0" />
您可以通过以下步骤添加响应标头:
填写弹出窗口:名称:Cache-Control Value:no-cache
要么
您可以在web.config中使用以下代码。
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
</staticContent>
</system.webServer>
</configuration>
此致,Jalpa。