控制-F5刷新浏览器(flash对象不刷新) [英] Control-F5 Browser Refresh (Flash object not refreshing)

查看:279
本文介绍了控制-F5刷新浏览器(flash对象不刷新)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引擎盖下,我想知道什么控制-F5的浏览器。

Under the hood, I was wondering what Control-F5 for a browser does.

对于我来说,它清除缓存并刷新图像/文本/控制/等等。我明白了。

To me, it clears the cache and refreshes images/text/controls/etc. I get that.

问:

什么Flash对象?我一直在试图刷新一个闪光控制一个页面,它似乎并没有刷新到最新版本。它只会刷新后,我手动清除缓存。

What about Flash objects? I've been trying to refresh a page with a Flash control and it doesn't seem to refresh to the latest. It would only refresh after I manually clear the cache.

推荐答案

好吧打完似乎结算与IE7控制-F5缓存不删除/清除xml文件的Flash对象从读取一些调查

Alright so after some investigation it appears that clearing the cache with Control-F5 in IE7 does not delete/clear the xml file that the flash object reads from.

这似乎是检查文件是否存在,如果是这样,它会使用该文件,而不管是否有新的版本。

It appears to check if the file exists and if so, it will use that file instead regardless if there's a newer version.

要解决这个问题的方法之一是让浏览器把每个请求,就好像它请求一个新的文件,所以我不得不产生一个随机数,并追加其为:

One way to get around this was to make the browser treat each request as if it is requesting a new file and so I had to generate a random number and append it as:

在动作:

var xmlPath = "/settings.xml?rand=" + getTimer();

另外,如果有闪光灯组件的变化,你也可以通过添加一个随机数到被加载的Flash SWF文件做同样的。

Also, if there are flash component changes, you can also do the same by appending a random number to the flash SWF file that is being loaded.

这篇关于控制-F5刷新浏览器(flash对象不刷新)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆