bypass mini profiler for locales

bypass cdn for now
This commit is contained in:
Sam 2018-01-09 11:30:59 +11:00
parent b0a7ee1aec
commit ea63abf0f7
2 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ class ExtraLocalesController < ApplicationController
def self.url(bundle) def self.url(bundle)
if Rails.env == "production" if Rails.env == "production"
"#{GlobalSetting.cdn_url}#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}" "#{Discourse.base_uri}/extra-locales/#{bundle}?v=#{bundle_js_hash(bundle)}"
else else
"#{Discourse.base_uri}/extra-locales/#{bundle}" "#{Discourse.base_uri}/extra-locales/#{bundle}"
end end

View File

@ -25,6 +25,7 @@ if defined?(Rack::MiniProfiler)
skip = [ skip = [
/^\/message-bus/, /^\/message-bus/,
/^\/extra-locales/,
/topics\/timings/, /topics\/timings/,
/assets/, /assets/,
/\/user_avatar\//, /\/user_avatar\//,