Safari / WebKit中是否有与ctrl-shift-r等效的文件?

时间:2020-03-06 14:38:26  来源:igfitidea点击:

IE。会真正重新加载页面或者资源的东西,而忽略缓存中可能存在的任何内容。

解决方案

Safari始终会重新加载(ctrl + r)页面,而忽略缓存中可能包含的内容。

正如雅典娜所指出的,iframe被缓存。实际上,不是iframe内容,而是缓存的请求。

In those cases, Safari caches the
  page, and then no matter which link
  you click, shows the iframe from the
  last click BEFORE the refresh (or
  back/forward). It's then stuck on that
  content, and shows it for all links.

通过为每个负载分配不同的iframe ID可以解决此问题:

iframe.id = new Date().getTime();