使用powershell更新iis中的缓存值

使用powershell更新iis中的缓存值,powershell,iis,Powershell,Iis,我正在尝试使用下面的powershell脚本更新IIS中的缓存值,但无法帮助获得准确的输出。有人能帮我纠正一下吗 尝试使用PowerShell对象表示法。您可能需要关闭并打开IIS管理器以查看更改。下面是我的工作方式 Set-WebConfiguration ` -PSPath IIS:\Sites\Default\<your web application> ` -filter '/system.webServer/staticContent/clientCach

我正在尝试使用下面的powershell脚本更新IIS中的缓存值,但无法帮助获得准确的输出。有人能帮我纠正一下吗


尝试使用PowerShell对象表示法。您可能需要关闭并打开IIS管理器以查看更改。下面是我的工作方式

Set-WebConfiguration `
    -PSPath IIS:\Sites\Default\<your web application> `
    -filter '/system.webServer/staticContent/clientCache' -Value (@{cacheControlCustom=""})
设置网络配置`
-PSPath IIS:\Sites\Default\`
-筛选器'/system.webServer/staticContent/clientCache'-Value(@{cacheControlCustom=”“})
Set-WebConfiguration `
    -PSPath IIS:\Sites\Default\<your web application> `
    -filter '/system.webServer/staticContent/clientCache' -Value (@{cacheControlCustom=""})