Chrome 和 SWF 缓存
我更改了我的 swf,但 chrome 只是继续加载旧的 swf。 我尝试在托管 swf 的 php 文件上添加 META(pragma、无缓存等)。我还添加了一些标头以强制不在 chrome 上使用缓存。
但它继续加载旧的 swf。 最后我重命名了 SWF: 这有帮助,但这确实不是正确的解决方案。
有人可以帮我解决 chrome 和 swf 缓存问题吗?
谢谢
I change my swf, but chrome just keep on loading the old swf.
I tried to add METAs (pragma, no cache etc..) on the php file that hosts the swf. I also added some headers to force not using cache on chrome.
But It keeps on loading OLD swf.
Finally I renamed the SWF: that helped, but this is really not the right solution.
Can someone help me with chrome and swf caching trouble ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是旧版 Chrome 中报告的错误,
Cache-Control
、Pragma
、Expires
等元数据在 Chrome 中不起作用。因此,在 Google Chrome 版本 5.xx 之前已确认,F5 和 CTRL+F5 不会刷新 Flash 版本 10,x,x 的 SWF 文件。您可以在此处阅读有关缓存错误的讨论。遇到的问题是,您可以在主机 php 文件的标头中使用
“cache-control: no-store”,而不是使用
“cache-control: no-store”
>。这似乎对很多开发人员都有效(我自己还没有测试过)This was a reported bug in old versions of Chrome that Meta's such as
Cache-Control
,Pragma
,Expires
, etc don't work in Chrome. Therefore, it was confirmed on Google Chrome up to version 5.x.x that F5 and CTRL+F5 don't refresh SWF files with Flash version 10,x,x. You can read the discussions of the caching bug hereOne solution I came across is that instead of using
"cache-control: no-cache"
in the header of your host php file, you can use"cache-control: no-store"
. This seemed to worked for plenty of developers (haven't tested this myself)您可以通过 Chrome 的调试设置(打开开发人员工具时右下角的小齿轮)选择“禁用缓存”设置,强制每次重新加载 swf。
You can force swf to be reloaded every time by selecting the "Disable cache" setting through Chrome's debug settings (the little gear at the bottom right corner when the developer tool is open).