From 41f933ce89f09d915ca15f718490619db49d356f Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 6 Mar 2023 11:08:32 +0000 Subject: [PATCH] PERF: Skip metadata routes for mini_profiler (#20543) Mini-profiler causes routes to become uncacheable. When using mini_profiler in production, the lack of cache on these routes can have a noticeable impact on performance/rate-limiting. --- config/initializers/006-mini_profiler.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/006-mini_profiler.rb b/config/initializers/006-mini_profiler.rb index 2972a981106..ec6f6e2a669 100644 --- a/config/initializers/006-mini_profiler.rb +++ b/config/initializers/006-mini_profiler.rb @@ -53,6 +53,8 @@ if defined?(Rack::MiniProfiler) && defined?(Rack::MiniProfiler::Config) %r{^/stylesheets/}, %r{^/favicon/proxied}, %r{^/theme-javascripts}, + %r{^/manifest.webmanifest}, + %r{^/opensearch.xml}, ] # we DO NOT WANT mini-profiler loading on anything but real desktops and laptops