moved static resource to basic nancy module.

cache and gzip piplelines are missing
This commit is contained in:
Keivan Beigi
2013-08-19 19:31:26 -07:00
parent 93b0cf4be9
commit 24ba4390a1
12 changed files with 185 additions and 145 deletions

View File

@@ -0,0 +1,18 @@
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;
}
}
}