Created attachment 345151 [details] screenshot I've just noticed that `<link rel=preload ...>` content seems to completely ignore the 'disable cache' button in the webkit inspector. This has the effect that on my development system I frequently get out of date data when working with javascript. Which is quite annoying. See attached screenshot for an illustration of the problem.
What I have in the html to load the script is this: `<link rel="preload" as="script" href="/static/additional.js" />` as well as `<script src="/static/additional.js"></script>`
Are you able to reproduce this in a standalone test case? That would really help us to isolate and fix the issue.
<rdar://problem/42286512>
Created attachment 345179 [details] code and video of reproduction
Hello @maintainers: any progress on this? This is _mightiliy_ annoying when trying to develop with Safari on a page that uses preloaded content. As far as I can tell neither Firefox nor Chromium behave this way, so I would be very surprised if this works as intended. Also, does my reproducer work for you? Do you need more input?
Some more info I can add from my testing: If a page preloaded a script it seems * I can not reload any other page from the same site to get a new version of the script * Emptying the cache (command-alt-e) doesn't trigger a reload of the script * Force Reloading (command-alt-r) doesn't trigger a reload of the script. What we do: * We have an entry page that contains the preload statements * all other pages just reference the scripts as usual
I opened a new issue for this: https://bugs.webkit.org/show_bug.cgi?id=193533, as the bug is not specific to the "Disable Cache" feature in the web inspector. If a request is preloaded, Safari will always retrieve it from the cache, regardless of the cache headers for that request.