Bug 193533 - Preloaded content is always retrieved from cache
Summary: Preloaded content is always retrieved from cache
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2019-01-17 05:33 PST by Oliver Joseph Ash
Modified: 2023-02-17 17:19 PST (History)
12 users (show)

See Also:

Reproducer (9.11 KB, application/zip)
2019-01-17 05:33 PST, Oliver Joseph Ash
no flags Details
Screenshot (175.74 KB, image/png)
2019-01-17 05:35 PST, Oliver Joseph Ash
no flags Details
Reproducer 2 (10.15 KB, application/zip)
2019-01-18 01:41 PST, Oliver Joseph Ash
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Joseph Ash 2019-01-17 05:33:10 PST
Created attachment 359368 [details]

If a request is preloaded, Safari will always retrieve it from the cache, regardless of the cache headers for that request.

Attached an example.

This is the same as https://bugs.webkit.org/show_bug.cgi?id=187726, but more general in scope—the bug is not specific to the "Disable Cache" feature in the web inspector.
Comment 1 Oliver Joseph Ash 2019-01-17 05:35:31 PST
Created attachment 359369 [details]
Comment 2 Radar WebKit Bug Importer 2019-01-17 08:43:04 PST
Comment 3 Oliver Joseph Ash 2019-01-18 01:41:39 PST
Created attachment 359462 [details]
Reproducer 2

I've improved the test case and included steps to reproduce in the README.md.
Comment 4 Sergio Mattei 2023-02-17 17:19:05 PST
This is a huge blocker for web development on Safari. 

This bug completely breaks the NextJS dev cycle. Are there any updates on this? It's very odd to enable "Disable Caches" and the browser to completely ignore my setting.