Fix nginx caching issues
authorMark Felder <feld@FreeBSD.org>
Thu, 10 Jan 2019 21:29:05 +0000 (21:29 +0000)
committerMark Felder <feld@FreeBSD.org>
Thu, 10 Jan 2019 21:29:05 +0000 (21:29 +0000)
commitcc3a83a7306262d9334b8cfb30ac99c024523d54
tree931474a6c2633ed288aff7b4c1f1e9cf8b0c9a8e
parent9be539f0c1ee5722db388ccff9f039b67d4f5bab
Fix nginx caching issues

Nginx is currently not caching data because proxy_buffering needs to be
enabled for caching to work at all, and we are receiving a Cache-Control
header from Pleroma that states "max-age=0, private, must-revalidate"

Even disregarding the Cache-Control header that should actually be set
to "public, max-age=1209600" as defined in the reverse_proxy code, we
don't want to obey this header at all as it overrides our Nginx caching
rules.
installation/pleroma.nginx