This commit is contained in:
Mark Felder 2020-03-13 12:42:06 -05:00
parent 3b1b183b42
commit 7321429a2e
1 changed files with 6 additions and 1 deletions

View File

@ -299,7 +299,12 @@ defp build_resp_cache_headers(headers, _opts) do
has_cache? ->
# 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})
List.keystore(
headers,
"cache-control",
0,
{"cache-control", @default_cache_control_header}
)
true ->
List.keystore(