From 100922875f280e57c04e5125117923a35b191fb8 Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Mon, 2 Oct 2023 16:43:43 -0300 Subject: [PATCH] Fix check --- apps/meteor/app/cors/server/cors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/app/cors/server/cors.ts b/apps/meteor/app/cors/server/cors.ts index c2ce9a1d6a63..89a8f60313ae 100644 --- a/apps/meteor/app/cors/server/cors.ts +++ b/apps/meteor/app/cors/server/cors.ts @@ -102,7 +102,7 @@ WebAppInternals.staticFilesMiddleware = function ( const { arch, path, url } = WebApp.categorizeRequest(req); if ( - Meteor.isProduction || + Meteor.isProduction && !cacheControlledRoutes.some((route) => { return new RegExp(`^${route}`, 'gi').test(path); })