add nostore header

This commit is contained in:
tparnell
2018-10-06 13:38:55 -04:00
parent 3c28252086
commit 07f7df9a85

View File

@@ -39,6 +39,9 @@ namespace TerribleDev
ILogger log, ILogger log,
string path) string path)
{ {
req.HttpContext.Response.GetTypedHeaders().CacheControl = new Microsoft.Net.Http.Headers.CacheControlHeaderValue() {
NoStore = true
};
log.LogInformation($"redirect triggered: {DateTime.Now}"); log.LogInformation($"redirect triggered: {DateTime.Now}");
var name = path.ToString().TrimEnd('/'); var name = path.ToString().TrimEnd('/');
if(string.Equals(name, "livecheck")) if(string.Equals(name, "livecheck"))