reverse_proxy,endpoint,uploaded_media: add immutable cache-control flag

This commit is contained in:
Yonle 2026-02-23 20:57:11 +07:00 • committed by Phantasm
commit 848b3f5d5b
4 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ defmodule Pleroma.Web.Endpoint do
plug(Pleroma.Web.Plugs.HTTPSecurityPlug)
plug(Pleroma.Web.Plugs.UploadedMedia)
@static_cache_control "public, max-age=1209600"
@static_cache_control "public, max-age=1209600, immutable"
@static_cache_disabled "public, no-cache"
# InstanceStatic needs to be before Plug.Static to be able to override shipped-static files

View file

@ -17,7 +17,7 @@ defmodule Pleroma.Web.Plugs.UploadedMedia do
# no slashes
@path "media"
@default_cache_control_header "public, max-age=1209600"
@default_cache_control_header "public, max-age=1209600, immutable"
def init(_opts) do
static_plug_opts =