diff --git a/.changeset/real-lizards-drum.md b/.changeset/real-lizards-drum.md new file mode 100644 index 0000000000..6ee01d80bc --- /dev/null +++ b/.changeset/real-lizards-drum.md @@ -0,0 +1,8 @@ +--- +"@comet/cms-api": patch +--- + +DAM: Fix/set cache-control headers + +- Public endpoints should cache files for 1 day +- Private endpoints should cache files for 1 year - but only in local caches (not CDN) diff --git a/packages/api/cms-api/src/dam/files/files.controller.ts b/packages/api/cms-api/src/dam/files/files.controller.ts index b21be05d4a..31d2978a39 100644 --- a/packages/api/cms-api/src/dam/files/files.controller.ts +++ b/packages/api/cms-api/src/dam/files/files.controller.ts @@ -109,7 +109,7 @@ export function createFilesController({ Scope: PassedScope }: { Scope?: Type