缓存问题 Windows 2003 - IIS 6

发布于 2024-11-08 01:08:54 字数 524 浏览 4 评论 0原文

我们的网络服务器上的缓存(我认为)存在问题。我们以负载平衡配置运行两台 Web 服务器。最近我们注意到,如果您更新图像或 CSS 类,刷新页面时不会反映更改。无论您是否按住 Shift + F5。

最近当我更改一个类以应用于链接而不是跨度时,就发生了这种情况。令人恼火的是,没有任何改变,包括重新启动 IIS 和回收 app_pool 之后。最后,我复制了 CSS 文件,将其重命名,并链接到标题中包含新类的新文件,从而更改了网页。

我对某些图像也有同样的问题。我需要更改页面上的 6 张图像,因为客户希望它们更长。我在 Photoshop 中更改了图像,覆盖了旧图像并将其上传到服务器。一切都没有改变。最后我不得不重命名图像并重命名 HTML 中的 img 标签。

我尝试添加:

<meta http-equiv="pragma" content="no-cache" />

到母版页,但这没有任何区别。

如果您有任何建议,他们将不胜感激。

谢谢,

达里尔

We're having a problem with caching (I assume) on our web server. We operate two web servers in a load balanced configuration. Just recently we've noticed that if you update an image or a CSS class, the changes are not being reflected when the page is refreshed. Whether you hold down shift + F5 or not.

This occurred most recently when I changed a class to apply to a link rather than a span. Irritatingly nothing changed, this includes after restarting IIS and recycling the app_pool. In the end I copied the CSS file, renamed it and linked to the new file with the new class in the header and that changed the web page.

I had the same problem with some images. I need to change 6 images on a page as the client wanted them to be longer. I changed the images in Photoshop, overwrote the old ones and uploaded them to the server. Nothing changed. In the end I had to rename the images and rename the img tags in the HTML.

I have tried adding:

<meta http-equiv="pragma" content="no-cache" />

To the master page, but this has not made any difference.

If you have any suggestions they would be greatly appreciated.

Thanks,

Darryl

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

根据您使用的负载均衡器的类型,如果负载均衡器上有任何类型的 Web 加速器,则缓存可能发生在负载均衡器上,而不是 Web 服务器或浏览器上。您可能需要尝试单独访问其中一台 Web 服务器,看看问题是否仍然存在。

Depending on the type of load balancer you are using, if there is any kind of web accelerator on the load balancer it may be that the caching is happening on the load balancer rather than the web servers or the browser. You may want to try accessing one of your web servers individually to see if the problem persists.

痴骨ら 2024-11-15 01:08:54

事实证明这是一个问题 < Umbraco v4.6,无法正确发布到负载平衡服务器。

我们在负载均衡器方面遇到了无穷无尽的问题,并且正在认真考虑打破它并使用单个服务器并保留辅助服务器作为故障转移。

Turns out this is a problem with < v4.6 of Umbraco, not publishing correctly to load balanced servers.

We have endless problems with the load balancer and are giving serious consideration to breaking it and going with a single server and keeping the secondary server as a fail-over.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文