防止 VirtualBox Guest 传送缓存文件

发布于 2024-11-27 12:17:08 字数 703 浏览 2 评论 0原文

在我的开发环境中编辑文件并将其保存到我的来宾操作系统 (CentOS) 后,来宾会提供已编辑文件的缓存版本(.css 或 .js)。

起初我以为这是本地浏览器缓存问题,但我已经删除、禁用、焚烧了所有 4 个浏览器和笔记本电脑(非主机)硬盘中的每个本地缓存。

此外,我使用一台机器(从未访问过来宾)进行了测试,来宾仍然交付了未编辑的文件。

然后我禁用了 Apache 中的所有缓存模块 - 我很确定(但不是肯定的 - 并且愿意接受任何建议)Apache 不是罪魁祸首。

我的客人或我的主机正在以某种方式/某处缓存文件,但我不知道如何或在哪里。

这是非常令人沮丧的 48 小时 - 任何帮助将不胜感激。

背景:

  • VirtualBox v 4.0.12
  • Guest:CentOS 5.5/LAMP(用作本地开发服务器)内部 IP 192.168.12.62
  • 主机:Windows Server 2008(网络配置:桥接)内部 IP 192.168.12.42
  • 开发文件存储在主机上并通过“共享文件夹”与来宾共享
  • 应用程序开发在连接到主机的第三台计算机(笔记本电脑)上完成通过映射的网络驱动器。内部 IP 192.168.12.32
  • 我已经为 Apache 配置了许多虚拟 IP 192.168.12.150-180
  • 如果我遗漏了任何内容,请告诉我。

After editing files in my development environment and saving them to my guest OS (CentOS), the Guest delivers a cached version of the edited files (.css or .js).

At first I thought this was a local browser caching issue, but I've deleted, disabled, incinerated, etc every local cache in all 4 browsers and in the laptop (non-host) hard drive.

In addition, I tested using a machine (that has never accessed the guest) and the guest still delivered the unedited files.

I've then disabled all caching modules in Apache - I'm pretty sure (but not positive - and open to any suggestions) Apache is not the culprit.

Either my guest or my host is caching files somehow/somewhere and I can't figure out how or where.

This has been a very frustrating 48 hours - any help would be greatly appreciated.

Background:

  • VirtualBox v 4.0.12
  • Guest: CentOS 5.5/LAMP (Being used as a local development server) Internal IP 192.168.12.62
  • Host: Windows Server 2008 (Network Config: Bridged) Internal IP 192.168.12.42
  • Development files are stored on the Host and shared with the Guest via "Shared Folders"
  • Application development is done on a third machine (laptop) connected to the host via mapped network drive. Internal IP 192.168.12.32
  • I've configured Apache with numerous virtual IP's 192.168.12.150-180
  • Please let me know if I've left anything out.

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

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

发布评论

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

评论(1

<逆流佳人身旁 2024-12-04 12:17:08

论坛帖子证实了该问题。这是错误报告。 Vboxsf 不能很好地与 sendfile 配合使用。 Apache 解决方法,如之前提到的

EnableSendFile Off

对于好奇的人,这是 SendFile 文档

This forum post confirms the problem. Here's the bug report. Vboxsf doesn't play nicely with sendfile. The Apache workaround, as previously mentioned:

EnableSendFile Off

For the curious, here's the SendFile docs.

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