[Webkit-unassigned] [Bug 275248] New: Safari doesn't send the If-None-Match header when the response contains the stale-while-revalidate header.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 7 01:51:33 PDT 2024


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

            Bug ID: 275248
           Summary: Safari doesn't send the If-None-Match header when the
                    response contains the stale-while-revalidate header.
           Product: WebKit
           Version: Safari 17
          Hardware: Mac (Apple Silicon)
                OS: macOS 14
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Page Loading
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: boris.ozegovic at gmail.com
                CC: beidson at apple.com

Version: 17.5 (19618.2.12.11.6)
Component: Network


Description: 

1. Please create a resource and add cache headers
  - no-cache, stale-while-revalidate=Integer >= 0 or
  - max-age=0, stale-while-revalidate=Integer >=0


2. Create a simple HTML file, something like this will suffice

```
<html>
<head>
    <script type="text/javascript" src="https://localhost:8081/static/js/getTranslations.js"></script>
</head>
<body>
</body>
</html>


```

3. Load the file in Safari, open the network tab, and observe. Refresh a couple of times.

Actual: Safari will never send the If-None-Match header. Safari will fetch the whole resource on subsequent calls.
Expected: Safari should completely ignore stale-while-revalidate and send the. If-None-Match header. The resource should return 304

3. If we were to remove stale-while-revalidate or if stale-while-revalidate is present but doesn't contain a value, Safari will send the If-None-Match header

-- 
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/20240607/d546893d/attachment-0001.htm>


More information about the webkit-unassigned mailing list