如何强制浏览器重新下载新版本的swf文件?
我在 Web 应用程序上将 flash 库 XML/SWF(图表库)
更新为最新版本,但用户仍然可以看到包含保存在浏览器缓存中的旧库的图表。
如何强制用户的浏览器下载最新版本的 SWF 文件。
我无法在 SWF 文件末尾添加参数,例如: charts.swf?v=1234。
如果这样做,我会收到错误消息,因为图表库会动态加载该 SWF 文件的其他 SWF 文件 。图书馆。 charts.swf 文件
将是新版本,但其他文件仍将来自旧版本,我会收到错误...
我可以使用 Apache 或标头执行某些操作吗?
I updated the flash library XML/SWF (chart library)
to the latest version on my web application but the users still see the charts with the old library which is saved in there browser cache.
How can I force the browsers of my users to download the latest version of the SWF files.
I can't add a parameter at the end of the SWF file like : charts.swf?v=1234.
If I do that I get an error because the chart library load dynamically other SWF files of the library. The charts.swf file
will be the new version but the other files will still be from the older version and I will get an error...
Can I do something with Apache or the header?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没办法这么做。或者您可以更改在不同目录中保存不同版本的目录
。
.../v1/chart.swf
.../v2/chart.swf
No way to do that. Or you can change the directory which hold different version in different directory
.
.../v1/chart.swf
.../v2/chart.swf
尝试 Apache 的 过期标头:
并查看此 相关帖子。
Try Apache's Expires Headers:
and see this related post.