mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 21:56:06 +00:00
16 lines
No EOL
335 B
C#
16 lines
No EOL
335 B
C#
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();
|
|
|
|
}
|
|
}
|
|
}
|
|
} |