aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-03-11 17:58:25 +0300
committerrinpatch <rinpatch@sdf.org>2020-03-11 17:58:25 +0300
commitc3b9fbd3a759d281ef2e81395b78549e43cab63c (patch)
treeab8351c4c7d2b6f930f49d9c230749dec2ab4201 /lib
parent9dbf493b65826d3421f568eb18651deeba8276e2 (diff)
downloadpleroma-c3b9fbd3a759d281ef2e81395b78549e43cab63c.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/endpoint.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex
index 118c3ac6f..72cb3ee27 100644
--- a/lib/pleroma/web/endpoint.ex
+++ b/lib/pleroma/web/endpoint.ex
@@ -12,7 +12,7 @@ defmodule Pleroma.Web.Endpoint do
plug(Pleroma.Plugs.HTTPSecurityPlug)
plug(Pleroma.Plugs.UploadedMedia)
- @static_cache_control "public max-age=86400 must-revalidate"
+ @static_cache_control "public, no-cache"
# InstanceStatic needs to be before Plug.Static to be able to override shipped-static files
# If you're adding new paths to `only:` you'll need to configure them in InstanceStatic as well