projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db36b48
)
Synchronize cache-control header for local media with the mediaproxy
author
Mark Felder
<feld@FreeBSD.org>
Fri, 13 Mar 2020 17:27:50 +0000
(12:27 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Fri, 13 Mar 2020 17:27:50 +0000
(12:27 -0500)
lib/pleroma/plugs/uploaded_media.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/plugs/uploaded_media.ex
b/lib/pleroma/plugs/uploaded_media.ex
index 57097baaeaed701fed431f96fc4e1974f8a5395a..74427709d8af65ddbc1df7757131f866e3188ccc 100644
(file)
--- 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 =