1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-29 13:25:17 +01:00

cache icons for 7 days

This commit is contained in:
Kyle Spearrin 2017-10-25 12:52:55 -04:00
parent 1ba269a0a4
commit 378f87ab69

View File

@ -33,7 +33,7 @@ namespace Bit.Icons.Controllers
}
[HttpGet("{hostname}/icon.png")]
[ResponseCache(Duration = 86400 /*24 hours*/)]
[ResponseCache(Duration = 604800 /*7 days*/)]
public async Task<IActionResult> Get(string hostname)
{
if(string.IsNullOrWhiteSpace(hostname) || !hostname.Contains("."))