IIS 8.5提供旧文件 [英] IIS 8.5 Serving Old Files

查看:55
本文介绍了IIS 8.5提供旧文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2012 IIS 8.5上有一个clickonce应用程序。我最近将其更新为新版本,除了第二个网页用来链接到该网址的一个URL之外,它都可以正常工作。它直接链接到.application文件,当我使用该链接时,将获得该文件的版本2.1.0.10,而不是服务器版本3.1.0.1的文件。

I have a clickonce application on Windows Server 2012 IIS 8.5. I recently updated it to a new version and it works fine, except for one url used by a second web page to link to it. It links directly to the .application file and when I use that link I get version 2.1.0.10 of that file instead of the one that is one the server version 3.1.0.1.

仅当使用该链接时,其他网址的服务器才是正确的文件。我什至已经停止了两台服务器上的网站(负载均衡),并且链接仍然以某种方式下载了旧文件。

It's only when using the that link, other url's server the correct file. I've even stopped the website on both servers (load balanced) and the link still somehow downloads the old file.

我在Output Cache下关闭了缓存和内核缓存。在IIS的设置中,我将通用HTTP响应标头设置为立即使Web内容过期,但是它仍然在服务和旧文件中,即使它不再存在。我有一个针对该特定URL的URL重写规则,以重定向到可以正常工作的URL,但仍然下载旧文件。

I have cache and kernel cache turned off under Output Cache Settings in IIS, I have Common HTTP Response Headers set to Expire Web Content immediately, but it's still serving up and old file even though it doesn't exist anymore. I have a url rewrite rule for that specific url to redirect to one that works and still I download an old file.

我已经重新启动了IIS和服务器本身,什么也没有已经改变。然后,我尝试将文件复制到新文件夹并在IIS中创建一个新站点。我复制了绑定,并停止了旧站点和应用程序池。仍然可以得到旧文件。

I've restarted IIS and the servers themselves and nothing has changed. I then tried copying the files to a new folder and creating a new site in IIS. I copied over the bindings and stopped the old site and app pool. Still get served the old file.

有人可以帮我弄清楚IIS的状况吗?即使网站停止了,它如何处理不存在的文件?

Can anyone help me figure out what's going on with the IIS? How is it serving up a file that doesn't exist, even when the website is stopped? How can I get it to update?

推荐答案

最终发现这是由负载均衡器缓存结果上的设置引起的。我们关闭了此设置,现在不再有问题。

This was eventually found to be caused by a setting on the load balancer caching results. We turned off this setting and now no longer have the issue.

这篇关于IIS 8.5提供旧文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆