From bc93c9a93cb386010ced1ed6cb5c518c402f6bc3 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 11 Jun 2024 16:15:58 -0600 Subject: [PATCH] Mention caching --- data/api/server-server/content_repository.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/data/api/server-server/content_repository.yaml b/data/api/server-server/content_repository.yaml index 02b367df..6c19d6ec 100644 --- a/data/api/server-server/content_repository.yaml +++ b/data/api/server-server/content_repository.yaml @@ -52,6 +52,11 @@ paths: can be retrieved. The URL at `Location` SHOULD have appropriate `Content-Type` and `Content-Disposition` headers which describe the media. + + When `Location` is present, servers SHOULD NOT cache the URL. + The remote server may have applied time limits on its validity. + If the caller requires an up-to-date URL, it SHOULD re-request + the media download. "429": $ref: '#/components/responses/rateLimited' "502": @@ -165,6 +170,11 @@ paths: `Content-Type` and `Content-Disposition` headers which describe the media. + When `Location` is present, servers SHOULD NOT cache the URL. + The remote server may have applied time limits on its validity. + If the caller requires an up-to-date URL, it SHOULD re-request + the media download. + {{% boxes/note %}} The `Content-Type` for the second part SHOULD be one of: * `image/png` (possibly of the APNG variety)