From: Mark Felder Date: Fri, 13 Mar 2020 17:27:50 +0000 (-0500) Subject: Synchronize cache-control header for local media with the mediaproxy X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3b1b183b42019adc9d09b0c1af703b25e313167d;p=akkoma Synchronize cache-control header for local media with the mediaproxy --- diff --git a/lib/pleroma/plugs/uploaded_media.ex b/lib/pleroma/plugs/uploaded_media.ex index 57097baae..74427709d 100644 --- a/lib/pleroma/plugs/uploaded_media.ex +++ b/lib/pleroma/plugs/uploaded_media.ex @@ -14,7 +14,7 @@ defmodule Pleroma.Plugs.UploadedMedia do # no slashes @path "media" - @default_cache_control_header "public max-age=86400 must-revalidate" + @default_cache_control_header "public, max-age=1209600" def init(_opts) do static_plug_opts =