Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an equivalent to Ctrl-Shift-R in Safari/WebKit?

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

like image 321
avernet Avatar asked Nov 01 '25 12:11

avernet


1 Answers

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();

like image 71
Swati Avatar answered Nov 03 '25 21:11

Swati