Private GIT

Skip to content
Snippets Groups Projects
Commit c2ec9827 authored by WhatFox's avatar WhatFox
Browse files

Fix webui on mono 3.x. Please don't use 3.x :(

parent 03a42af5
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,9 @@ namespace Jackett ...@@ -11,6 +11,9 @@ namespace Jackett
{ {
public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext) public override void OnActionExecuted(HttpActionExecutedContext actionExecutedContext)
{ {
if(null!= actionExecutedContext &&
null!= actionExecutedContext.Response &&
null!= actionExecutedContext.Response.Headers)
actionExecutedContext.Response.Headers.CacheControl = new System.Net.Http.Headers.CacheControlHeaderValue() actionExecutedContext.Response.Headers.CacheControl = new System.Net.Http.Headers.CacheControlHeaderValue()
{ {
NoStore = true, NoStore = true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment