We should keep the expires header too. If cache-control is also served, expires is ignored.

This commit is contained in:
Mark Felder 2021-12-30 20:10:40 +00:00 committed by FloatingGhost
parent 7e2ee0a3de
commit 8fd0a06241

View file

@ -9,7 +9,7 @@ defmodule Pleroma.ReverseProxy do
@resp_cache_headers ~w(etag date last-modified)
@keep_resp_headers @resp_cache_headers ++
~w(content-length content-type content-disposition content-encoding) ++
~w(content-range accept-ranges vary)
~w(content-range accept-ranges vary expires)
@default_cache_control_header "public, max-age=1209600"
@valid_resp_codes [200, 206, 304]
@max_read_duration :timer.seconds(30)