Synchronize cache-control header for local media with the mediaproxy
authorMark Felder <feld@FreeBSD.org>
Fri, 13 Mar 2020 17:27:50 +0000 (12:27 -0500)
committerMark Felder <feld@FreeBSD.org>
Fri, 13 Mar 2020 17:27:50 +0000 (12:27 -0500)
lib/pleroma/plugs/uploaded_media.ex

index 57097baaeaed701fed431f96fc4e1974f8a5395a..74427709d8af65ddbc1df7757131f866e3188ccc 100644 (file)
@@ -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 =