Skip to content

Commit 460f36d

Browse files
committed
Document the tree endpoint Cache-Control as private, immutable to match the server
1 parent 8773e82 commit 460f36d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/useCases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ _See [use case](../src/datasets/domain/useCases/ListDatasetTreeNode.ts) implemen
16561656

16571657
Other optional parameters: `cursor` (opaque, from a previous response), `include` (`'all' | 'folders' | 'files'`, default `'all'`), `order` (`'NameAZ' | 'NameZA'`, default `'NameAZ'`), `includeDeaccessioned` (default `false`), and `originals` (when `true`, the per-file `downloadUrl` carries `?format=original`).
16581658

1659-
For published, non-deaccessioned versions the underlying API emits `ETag` + `Cache-Control: public, immutable` headers. Drafts and deaccessioned versions don't.
1659+
For published, non-deaccessioned versions the underlying API emits `ETag` + `Cache-Control: private, immutable` headers. The `private` directive keeps responses out of shared proxy caches because the route is auth-required; the browser's own cache still benefits from `immutable`. Drafts and deaccessioned versions don't.
16601660

16611661
#### Iterate a Folder of a Dataset Version (Tree View)
16621662

0 commit comments

Comments
 (0)