Varnish 页面重新加载 (F5) 在非缓存页面上需要很长时间

发布于 2024-10-06 03:28:34 字数 388 浏览 2 评论 0原文

情况: Varnish 2.1.4 lenny(最新稳定版)使用 mod_php 在 Debian/Apache 上成功运行。

我在该服务器上运行了多个 Drupal 站点,其中一些站点经过 Varnish 增强(例如使用 Pressflow)。这些网站按预期工作。

其他不使用反向代理的网站,当您输入地址或单击周围时加载正常,但当您使用 F5 或 Ctrl+F5 刷新页面时需要花费非常奇怪的很长一段时间(30-45 秒)来加载。

我不认为这是 VCL 配置的问题;如果我立即对这些域之一进行返回(通过),问题仍然存在。这是否与此问题有关?

Situation:
Varnish 2.1.4 lenny (latest stable) is running succesfully on Debian/Apache with mod_php.

I've got multiple Drupal sites running on this server and some are Varnish enhanced (e.g. using Pressflow). These sites work as expected.

The other sites, who aren't using the reverse-proxy, load fine when you enter the address or click around but take a really weird long time (30-45 secs) to load when you refresh the page using F5 or Ctrl+F5.

I don't think it's a VCL configuration thing; if I do a return (pass) immeditaley for one of these domains, the problem persists. Could this be related to this issue?

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

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

发布评论

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

评论(2

陌若浮生 2024-10-13 03:28:34

那些不使用清漆的网站还在经历这个过程吗?

为了调试,我会用 firebug 查看网络选项卡,它应该告诉你什么花费了它的时间。可能初始页面加载正常,但其他资源需要很长时间才能通过。

Are the sites that arn't using varnish still going through it?

For debugging, I would have a look at the net tab with firebug, it should give you an indication of what is taking its' time. It could be that the itial page load is fine but the other resources are taking a long time to get through.

宁愿没拥抱 2024-10-13 03:28:34

实际上,我发现 varnish 2.1.4 在 Apache 的 Keep-Alive 功能(打开)方面存在某种问题。将其关闭解决了这两个问题!

Actually, I found out varnish 2.1.4 has some kind of problem with Apache's Keep-Alive functionalitiy (which was On). Turning it Off solved both problems!

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