endpoint: reorder: handle favicon plug first

This commit is contained in:
Yonle 2026-03-04 03:13:55 +07:00 committed by Phantasm
commit 0879dd3950

View file

@ -65,15 +65,6 @@ defmodule Pleroma.Web.Endpoint do
} }
) )
plug(Pleroma.Web.Plugs.InstanceStatic,
at: "/",
gzip: true,
cache_control_for_etags: @static_cache_disabled,
headers: %{
"cache-control" => @static_cache_disabled
}
)
plug(Pleroma.Web.Plugs.Favicon, plug(Pleroma.Web.Plugs.Favicon,
at: "/", at: "/",
only: ["favicon.png"], only: ["favicon.png"],
@ -83,6 +74,15 @@ defmodule Pleroma.Web.Endpoint do
} }
) )
plug(Pleroma.Web.Plugs.InstanceStatic,
at: "/",
gzip: true,
cache_control_for_etags: @static_cache_disabled,
headers: %{
"cache-control" => @static_cache_disabled
}
)
plug(Pleroma.Web.Plugs.FrontendStatic, plug(Pleroma.Web.Plugs.FrontendStatic,
at: "/", at: "/",
frontend_type: :primary, frontend_type: :primary,