mirror of
https://github.com/discourse/discourse.git
synced 2025-03-23 03:16:50 +08:00
PERF: use CDN url for proxy of favicon
This avoids hitting S3 direct which is usually not desirable.
This commit is contained in:
parent
3e37801d05
commit
213117b84c
@ -135,7 +135,7 @@ class StaticController < ApplicationController
|
||||
if Discourse.store.external?
|
||||
begin
|
||||
file = FileHelper.download(
|
||||
UrlHelper.absolute(favicon.url),
|
||||
Discourse.store.cdn_url(favicon.url),
|
||||
max_file_size: favicon.filesize,
|
||||
tmp_file_name: FAVICON,
|
||||
follow_redirect: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user