[Webkit-unassigned] [Bug 193533] Preloaded content is always retrieved from cache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 30 10:43:32 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=193533

Hannes Ljungberg <hannseman at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hannseman at gmail.com

--- Comment #5 from Hannes Ljungberg <hannseman at gmail.com> ---
Encountered this issue today with Safari (Version 18.0 (19619.1.26.111.10, 19619)). 

Usage:

<link
  rel="preload"
  href="https://example.com/foo"
  as="fetch"
  crossorigin="anonymous"
/>

Server responds with:

Cache-Control: no-cache
Etag: barbaz

Now, when reloading I would expect Safari to send a HTTP request with "If-None-Match:  barbaz" but instead it caches the response indefinitely(?) and serves it from "Memory Cache" with no HTTP requests hitting the server. Both Firefox (130.0.1) and Chrome (129.0.6668.70) behaves as expected.

My use-case requires all cached preloaded requests to be revalidated with a "If-None-Match" before usage and since Safari ignores the directive to revalidate I have to opt-out of using this optimisation altogether.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240930/867364f5/attachment.htm>


More information about the webkit-unassigned mailing list