Preloading/caching issue in Safari
See original GitHub issueIt looks like Safari reloads images again on each trial even though it has already preloaded stimuli at the beginning of the experiment. I’ve only tested it with the image-button-response
plugin though. See discussion #1547.
Issue Analytics
- State:
- Created 3 years ago
- Comments:33 (6 by maintainers)
Top Results From Across the Web
Safari's bizarre caching of CORS resources breaks preloading
This appears to be due to an idiosyncrasy or bug in Safari having to do with the way it caches CORS-enabled resources, which...
Read more >Prevent safari loading from cache when back button is clicked
Your problem is caused by back-forward cache. It is supposed to save complete state of page when user navigates away.
Read more >Safari does not load images after … | Apple Developer Forums
Cached Images will be shown. Using the inspector you can see, that the browser tries to load the images, but nothing happens. There...
Read more >How to Clear Cache for All Major Browsers - Kinsta
Find out how to clear the browser cache in most major browsers with these quick steps and why you might want to clear...
Read more >WebKit Features in Safari 16.1 - Hacker News
EDIT2: People keep saying it's a privacy issue. Am I wrong in understanding that cache sandboxing mitigates this privacy concern?
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @becky-gilbert, thanks for working on this. I don’t use Safari myself and have been asking participants to not use Safari, so I’m not entirely sure if there’s still a problem. But I ran your 6.3 example in Safari (see gif below) and it seems like there’s still network activity going on on each trial (I don’t see such activity in Chrome/Firefox).
This looks like it might be a clue to solving the issue: https://stackoverflow.com/questions/61566984/async-image-preloading-by-promise-all-not-working-on-non-chrome-browsers
@becky-gilbert we could try adding this decide to preloading functions. I’ll work on it when I have some dev time available, but feel free to try it if you beat me to it.