From 7ca9e5ae61e9f8346e58d1e9cf6cf5bc63ee2efe Mon Sep 17 00:00:00 2001 From: jvyden Date: Mon, 22 Nov 2021 19:39:09 -0500 Subject: [PATCH] Cache resources --- ProjectLighthouse/Controllers/ResourcesController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ProjectLighthouse/Controllers/ResourcesController.cs b/ProjectLighthouse/Controllers/ResourcesController.cs index 87ffed95..24949857 100644 --- a/ProjectLighthouse/Controllers/ResourcesController.cs +++ b/ProjectLighthouse/Controllers/ResourcesController.cs @@ -39,6 +39,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers return this.Ok(LbpSerializer.StringElement("resources", resources)); } + [ResponseCache(Duration = 86400)] [HttpGet("/gameAssets/{hash}")] [HttpGet("r/{hash}")] public IActionResult GetResource(string hash)