Skip to content

Commit

Permalink
🎨 Reduce cache max-age to one month when fetching images
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed Jun 17, 2024
1 parent c41a430 commit 6e95038
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/webtoon/image/image.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ImageController{

@Get(":sum")
@Header("Content-Type", "image/webp")
@Header("Cache-Control", "public, max-age=31536000")
@Header("Cache-Control", "public, max-age=43200")
@ApiResponse({status: HttpStatusCode.Ok, description: "Get image"})
@ApiResponse({status: HttpStatusCode.NotFound, description: "Not found"})
@ApiResponse({status: HttpStatusCode.BadRequest, description: "Invalid sha256 sum"})
Expand Down

0 comments on commit 6e95038

Please sign in to comment.