mirror of
https://github.com/bitwarden/server.git
synced 2025-05-29 15:24:51 -05: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")]
|
[HttpGet("{hostname}/icon.png")]
|
||||||
[ResponseCache(Duration = 86400 /*24 hours*/)]
|
[ResponseCache(Duration = 604800 /*7 days*/)]
|
||||||
public async Task<IActionResult> Get(string hostname)
|
public async Task<IActionResult> Get(string hostname)
|
||||||
{
|
{
|
||||||
if(string.IsNullOrWhiteSpace(hostname) || !hostname.Contains("."))
|
if(string.IsNullOrWhiteSpace(hostname) || !hostname.Contains("."))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user