diff options
author | Mark Felder <feld@FreeBSD.org> | 2020-03-13 12:54:06 -0500 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2020-03-13 12:54:06 -0500 |
commit | c6eb1c1b929b85d14bf4ba29616c5b4bad732001 (patch) | |
tree | d85c7139f195853bcd8254e44e5cc741294e824a | |
parent | 7321429a2ea134d7d920d8c977c4ec7bdcafc5e1 (diff) | |
parent | 096c5c52e0eda931e3a9c46b61292dde55e19c91 (diff) | |
download | pleroma-c6eb1c1b929b85d14bf4ba29616c5b4bad732001.tar.gz |
Merge branch 'develop' into fix/cache-control-headers
-rw-r--r-- | lib/pleroma/web/endpoint.ex | 2 | ||||
-rw-r--r-- | test/plugs/cache_control_test.exs | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/test/plugs/cache_control_test.exs b/test/plugs/cache_control_test.exs index 005912ffb..6b567e81d 100644 --- a/test/plugs/cache_control_test.exs +++ b/test/plugs/cache_control_test.exs @@ -9,7 +9,7 @@ defmodule Pleroma.Web.CacheControlTest do test "Verify Cache-Control header on static assets", %{conn: conn} do conn = get(conn, "/index.html") - assert Conn.get_resp_header(conn, "cache-control") == ["public max-age=86400 must-revalidate"] + assert Conn.get_resp_header(conn, "cache-control") == ["public, no-cache"] end test "Verify Cache-Control header on the API", %{conn: conn} do |