如何强制浏览器重新下载新版本的swf文件?

发布于 2024-10-05 19:55:43 字数 333 浏览 0 评论 0原文

我在 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 技术交流群。

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

发布评论

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

评论(2

情独悲 2024-10-12 19:55:43

没办法这么做。或者您可以更改在不同目录中保存不同版本的目录

.../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

亚希 2024-10-12 19:55:43

尝试 Apache 的 过期标头

<FilesMatch "\.(swf)$">
 ExpiresActive on
 ExpiresDefault "access plus 2 hours"
</FilesMatch>

并查看此 相关帖子

Try Apache's Expires Headers:

<FilesMatch "\.(swf)$">
 ExpiresActive on
 ExpiresDefault "access plus 2 hours"
</FilesMatch>

and see this related post.

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