Question

I.e. something that would really reload the page or resource, ignoring whatever might be in cache.

Was it helpful?

Solution

Safari always reloads (ctrl+r) a page ignoring whatever that might be in the cache.

As Athena points out, iframes are cached. It's actually not the iframe content, but the request that's cached.

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.

This is overcome by assigning a different iframe id on each load:

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top