Html 403禁止使用禁用缓存选项
在使用AAD进行身份验证的应用程序中,我们有一些HTML文件,我们不想缓存这些文件。基于,我在应用程序的Web.config中添加了以下标记:Html 403禁止使用禁用缓存选项,html,browser,browser-cache,cache-control,disable-caching,Html,Browser,Browser Cache,Cache Control,Disable Caching,在使用AAD进行身份验证的应用程序中,我们有一些HTML文件,我们不想缓存这些文件。基于,我在应用程序的Web.config中添加了以下标记: <location path="filepath"> <system.webServer> <staticContent> <clientCache cacheControlMode="DisableCache" />
<location path="filepath">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
</staticContent>
</system.webServer>
</location>
在步骤4中,打开开发人员工具时,控制台显示403禁止该文件夹中的所有HTML文件。但是如上所述,硬刷新修复了它
你知道这里会发生什么,怎么解决吗
1. Close the browser completely
2. Open a new browser window
3. Open our website
4. Website doesn't load
5. User clicks Ctrl+F5
6. Website loads fine