小程序和浏览器共享缓存吗?
我有一个第三方小程序,它使用 csv 文件(我们将其称为 file.csv
),并使用所有列。我还有一个第三方 swf 对象,它使用 file.csv
但仅使用 20% 的列。最初的决定是对两者使用相同的文件,因为这样可以更容易维护。
我的问题是,file.csv
是否由浏览器下载一次并由小程序和swf共享,或者小程序和swf都下载自己的file.csv副本?
这很重要,因为 file.csv
是一个大文件,如果用户必须下载两次,则维护两个版本会节省带宽。
使用 Firebug,CSV 仅列出一次。但是,当我删除 swf 时,小程序仍会获取 file.csv
但它未在 Firebug 中列出。
I have a third party applet that makes use a csv file, let's call it file.csv
, and makes use of all of the columns. I also have a third party swf object that makes use of file.csv
but only makes use of 20% of the columns. The initial decision was to use the same file for both because it would result in easier maintenance.
My question is, does file.csv
get downloaded by the browser once and get shared by both the applet and the swf OR are both the applet and the swf downloading their own copy of file.csv
?
This is important because file.csv
is a large file and if the user has to download it twice, there would be a bandwidth savings in maintaining two versions.
Using Firebug, the CSV is only listed once. However, when I remove the swf, the applet still fetches file.csv
but it is not listed in Firebug.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答我自己的问题,但进一步调查发现小程序和浏览器都在独立下载文件。
Answering my own question, but further investigation revealed that the applet and the browser were both downloading the file independently.