mirror of
https://github.com/bitwarden/server.git
synced 2024-11-26 12:55:17 +01:00
cache icons for 7 days
This commit is contained in:
parent
1ba269a0a4
commit
378f87ab69
@ -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("."))
|
||||
|
Loading…
Reference in New Issue
Block a user