diff options
author | rinpatch <rinpatch@sdf.org> | 2019-11-06 16:41:19 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-11-06 16:41:19 +0300 |
commit | 84175fe30e3661cafe6d5a0a5c7243a60b7d0ff0 (patch) | |
tree | 38e3f59b592e47eede0a1f8e32252a93dbf314f3 /lib | |
parent | 8b194641764b06856082baf34a94e2e4875b61eb (diff) | |
download | pleroma-84175fe30e3661cafe6d5a0a5c7243a60b7d0ff0.tar.gz |
Set better Cache-Control header for static content
Closes #1382
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/endpoint.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/endpoint.ex b/lib/pleroma/web/endpoint.ex index 2212e93f4..49735b5c2 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, no-cache" + @static_cache_control "public max-age=86400 must-revalidate" # 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 |