1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00
Radarr/NzbDrone.Api/Frontend/IsCacheableSpecification.cs
Keivan Beigi 24ba4390a1 moved static resource to basic nancy module.
cache and gzip piplelines are missing
2013-08-19 19:31:26 -07:00

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;
}
}
}