projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e04e16b
)
Update comment to reflect what the code is actually doing
author
Mark Felder
<feld@FreeBSD.org>
Fri, 13 Mar 2020 16:46:40 +0000
(11:46 -0500)
committer
Mark Felder
<feld@FreeBSD.org>
Fri, 13 Mar 2020 16:46:40 +0000
(11:46 -0500)
lib/pleroma/reverse_proxy/reverse_proxy.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/reverse_proxy/reverse_proxy.ex
b/lib/pleroma/reverse_proxy/reverse_proxy.ex
index 8db3f78bbb8e41413a763c13d02da5222852e1eb..072a3d263de92c85b8ff7074d4f319eaffaea874 100644
(file)
--- a/
lib/pleroma/reverse_proxy/reverse_proxy.ex
+++ b/
lib/pleroma/reverse_proxy/reverse_proxy.ex
@@
-297,8
+297,8
@@
defmodule Pleroma.ReverseProxy do
cond do
has_cache? ->
- # There's caching header present but no cache-control -- we need to
explicitely override it
- #
to public
as Plug defaults to "max-age=0, private, must-revalidate"
+ # There's caching header present but no cache-control -- we need to
set our own
+ # as Plug defaults to "max-age=0, private, must-revalidate"
List.keystore(headers, "cache-control", 0, {"cache-control", @default_cache_control_header})
true ->