mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 05:35:57 +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?
|
if Discourse.store.external?
|
||||||
begin
|
begin
|
||||||
file = FileHelper.download(
|
file = FileHelper.download(
|
||||||
UrlHelper.absolute(favicon.url),
|
Discourse.store.cdn_url(favicon.url),
|
||||||
max_file_size: favicon.filesize,
|
max_file_size: favicon.filesize,
|
||||||
tmp_file_name: FAVICON,
|
tmp_file_name: FAVICON,
|
||||||
follow_redirect: true
|
follow_redirect: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user