1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-14 06:07:36 -05:00

no response cache. manual CacheControl middleware

This commit is contained in:
Kyle Spearrin
2018-06-18 13:35:46 -04:00
parent 7ee659e3b1
commit 18b7bcb9e3
2 changed files with 12 additions and 3 deletions

View File

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