You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using Nancy;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Api.Extensions
|
|
|
|
|
{
|
|
|
|
|
public static class CacheHeaderPipeline
|
|
|
|
|
{
|
|
|
|
|
public static void Handle(NancyContext context)
|
|
|
|
|
{
|
|
|
|
|
if (context.Response.ContentType.Contains("json"))
|
|
|
|
|
{
|
|
|
|
|
context.Response.Headers.DisableCache();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|