diff --git a/PxWeb/Program.cs b/PxWeb/Program.cs index 3066e3b6..ebed6868 100644 --- a/PxWeb/Program.cs +++ b/PxWeb/Program.cs @@ -197,7 +197,7 @@ public static void Main(string[] args) app.UseIpRateLimiting(); } - app.UseWhen(context => !context.Request.Path.StartsWithSegments(pxApiConfiguration.RoutePrefix + "/admin") || context.Request.Path.StartsWithSegments("/admin"), appBuilder => + app.UseWhen(context => !(context.Request.Path.StartsWithSegments(pxApiConfiguration.RoutePrefix + "/admin") || context.Request.Path.StartsWithSegments("/admin")), appBuilder => { appBuilder.UseCacheMiddleware(); });