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>
Sun, 15 Mar 2020 13:59:39 +0000 (16:59 +0300)
commit80bc8c2cc980b5e3270110313514a5bad2d3c9fb
treedd5f1bf099d7f45a50e8879671a9e99e191632dc
parent2183d8f8499c19e3d24028426ae7b29edba7175b
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