mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
Revert "FIX: not serving non brotli cdns from cdn_url"
This reverts commit eaa896d8ee
.
This commit is contained in:
parent
eaa896d8ee
commit
81c0092326
@ -60,8 +60,6 @@ module ApplicationHelper
|
|||||||
ENV["COMPRESS_BROTLI"] == "1" &&
|
ENV["COMPRESS_BROTLI"] == "1" &&
|
||||||
request.env["HTTP_ACCEPT_ENCODING"] =~ /br/
|
request.env["HTTP_ACCEPT_ENCODING"] =~ /br/
|
||||||
path.gsub!("#{GlobalSetting.cdn_url}/assets/", "#{GlobalSetting.cdn_url}/brotli_asset/")
|
path.gsub!("#{GlobalSetting.cdn_url}/assets/", "#{GlobalSetting.cdn_url}/brotli_asset/")
|
||||||
elsif GlobalSetting.cdn_url
|
|
||||||
path.gsub!("#{GlobalSetting.cdn_url}/assets/", "#{GlobalSetting.cdn_url}/cdn_asset/")
|
|
||||||
end
|
end
|
||||||
"<link rel='preload' href='#{path}' as='script'/>
|
"<link rel='preload' href='#{path}' as='script'/>
|
||||||
<script src='#{path}'></script>".html_safe
|
<script src='#{path}'></script>".html_safe
|
||||||
|
Loading…
Reference in New Issue
Block a user