Revert "Set better Cache-Control header for static content"
authorrinpatch <rinpatch@sdf.org>
Wed, 11 Mar 2020 14:58:25 +0000 (17:58 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 11 Mar 2020 14:58:25 +0000 (17:58 +0300)
commitc3b9fbd3a759d281ef2e81395b78549e43cab63c
treeab8351c4c7d2b6f930f49d9c230749dec2ab4201
parent9dbf493b65826d3421f568eb18651deeba8276e2
Revert "Set better Cache-Control header for static content"

On furher investigation it seems like all that did was cause unintuitive
behavior. The emoji request flood that was the reason for introducing it
isn't really that big of a deal either, since Plug.Static only needs to
read file modification time and size to determine the ETag.

Closes #1613
lib/pleroma/web/endpoint.ex
test/plugs/cache_control_test.exs