diff --git a/T120B165-ImgBoard/Controllers/PostController.cs b/T120B165-ImgBoard/Controllers/PostController.cs index b16f88d..caa425d 100644 --- a/T120B165-ImgBoard/Controllers/PostController.cs +++ b/T120B165-ImgBoard/Controllers/PostController.cs @@ -273,6 +273,7 @@ public class PostController( /// If request is malformed /// If post or file is not found [HttpGet("{postId:int}/files/{fileId:int}")] + [ResponseCache(Duration = 604800, Location = ResponseCacheLocation.Any)] // Cache for 7 days [ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status400BadRequest)] [ProducesResponseType(StatusCodes.Status404NotFound)]