Skip to content

Use HTTP cache headers in MDS BLOB downloads#473

Open
emlun wants to merge 4 commits intomainfrom
mds-cache-headers
Open

Use HTTP cache headers in MDS BLOB downloads#473
emlun wants to merge 4 commits intomainfrom
mds-cache-headers

Conversation

@emlun
Copy link
Copy Markdown
Member

@emlun emlun commented Apr 21, 2026

FIDO MDS returns an ETag response header and supports the If-None-Match request header in BLOB download requests:

The system may pass the serial number of the latest cached Metadata Service
BLOB to the service (GET /?localCopySerial=77). In that case, the MDS will
return HTTP code 304 (Not Modified) if no newer MDS blob is available.
Alternatively, the serial number of the local copy could be provided through
the "If-None-Match" header field. The server will always return the serial
number in the ETag header field. If both, the "localCopySerial" parameter and
the "If-None-Match" header are provided, the server will only process the
"localCopySerial" parameter.

FIDO MDS returns an `ETag` response header and supports the `If-None-Match`
request header in BLOB download requests [1]:

>The system may pass the serial number of the latest cached Metadata Service
>BLOB to the service (GET `/?localCopySerial=77`). In that case, the MDS will
>return HTTP code 304 (Not Modified) if no newer MDS blob is available.
>Alternatively, the serial number of the local copy could be provided through
>the "If-None-Match" header field. The server will always return the serial
>number in the ETag header field. If both, the "localCopySerial" parameter and
>the "If-None-Match" header are provided, the server will only process the
>"localCopySerial" parameter.

[1]: https://fidoalliance.org/specs/mds/fido-metadata-service-v3.1-ps-20250521.html#sctn-mds-blob-proc-rules
@emlun emlun requested a review from fdennis April 21, 2026 11:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 21, 2026

Test Results

2 240 tests   2 232 ✅  55s ⏱️
   45 suites      8 💤
   46 files        0 ❌
    1 errors

For more details on these parsing errors, see this check.

Results for commit 19950d8.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant