即使禁用浏览器缓存,子 SWF 仍在缓存

发布于 2024-10-08 05:22:05 字数 394 浏览 1 评论 0原文

我有一个加载了几个子 SWF 的父 SWF。即使我的浏览器缓存已清除(实际上已被禁用)重新加载,甚至重新启动,浏览器也不会触发将最新版本的子 SWF 加载到父 SWF 中。我什至可以从 FTP 服务器上删除该 SWF,它仍然为我提供那里的最后一个版本。

什么在缓存子 SWF,以及如何强制它们在我这边刷新?我不太关心最终用户,因为一旦网站开发结束,SWF 文件就不会经常更改。 (它们都加载到 XML 文件中,这些文件通过 PHP 缓存控制禁用了缓存,并使标头过期。)

我主要在 PC 和 Mac 上使用 Firefox,但它似乎在 IE/PC 和 Safari/Mac 上执行相同的操作。 PC 正在使用我的 ISP 的 DNS,Mac 正在使用 OpenDNS...不确定这是否与之有关。该网站托管在 Rackspace Cloud 上。

I've got a parent SWF that loads in a couple child SWFs. Even though my browser cache is cleared -- it's disabled, in fact -- reloading, or even restarting, the browser doesn't trigger the newest version of the child SWFs to load into the parent SWF. I can even delete the SWF off the FTP server, and it still gives me the last version that was up there.

What's caching the child SWFs, and how do I force them to refresh on my end? I'm not too concerned about the end user, because once the site development is over, the SWF files won't change very often. (They're all loading in XML files that have the cache disabled via PHP cache control and expires headers.)

I'm primarily using Firefox on PC and Mac, but it seems to do the same thing on IE/PC and Safari/Mac. The PC is using my ISP's DNS, and the Mac is using OpenDNS... not sure if that has anything to do with it. The site is hosted on Rackspace Cloud.

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

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

发布评论

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

评论(1

永不分离 2024-10-15 05:22:05

它可以由中间代理缓存,并且不能保证 Flash 读取您的浏览器设置。绕过各级缓存的最直接方法是在子电影URL中添加一个不断变化的随机数作为参数,即:

http://path/to/movie.swf?rand=9823478932

It could be cached by an intermediate proxy, and there's no guarentee flash reads your browser settings. The most direct way to bypass caching at all levels is to add a constantly changing random number to the child movie URL as a parameter, ie:

http://path/to/movie.swf?rand=9823478932

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