diff --git a/apps/api/src/campaign-file/campaign-file.controller.ts b/apps/api/src/campaign-file/campaign-file.controller.ts index 5438e5e91..77d74c4d4 100644 --- a/apps/api/src/campaign-file/campaign-file.controller.ts +++ b/apps/api/src/campaign-file/campaign-file.controller.ts @@ -12,6 +12,7 @@ import { Body, Inject, forwardRef, + Header, } from '@nestjs/common' import { FilesInterceptor } from '@nestjs/platform-express' import { UseInterceptors, UploadedFiles } from '@nestjs/common' @@ -78,6 +79,7 @@ export class CampaignFileController { @Get(':id') @Public() + @Header('Cache-Control', 'public, s-maxage=15552000, stale-while-revalidate=15552000, immutable') async findOne( @Param('id') id: string, @Response({ passthrough: true }) res,