mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
24ba4390a1
cache and gzip piplelines are missing
18 lines
487 B
C#
18 lines
487 B
C#
using System;
|
|
using Nancy;
|
|
|
|
namespace NzbDrone.Api.Frontend
|
|
{
|
|
public class IsCacheableSpecification
|
|
{
|
|
public bool IsCacheable(Request request)
|
|
{
|
|
if (request.Path.Contains(".")) return false;
|
|
if (request.Path.StartsWith("/api", StringComparison.CurrentCultureIgnoreCase)) return false;
|
|
if (request.Path.StartsWith("/signalr", StringComparison.CurrentCultureIgnoreCase)) return false;
|
|
|
|
|
|
return true;
|
|
}
|
|
}
|
|
} |