aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-11-06 14:31:32 +0000
committerrinpatch <rinpatch@sdf.org>2019-11-06 14:31:32 +0000
commita918167256e707fa889f52a96df27e26efaf66d8 (patch)
tree38e3f59b592e47eede0a1f8e32252a93dbf314f3 /test
parent8b194641764b06856082baf34a94e2e4875b61eb (diff)
parent84175fe30e3661cafe6d5a0a5c7243a60b7d0ff0 (diff)
downloadpleroma-a918167256e707fa889f52a96df27e26efaf66d8.tar.gz
Merge branch 'fix/saner-static-cache-control' into 'develop'
Set better Cache-Control header for static content Closes #1382 See merge request pleroma/pleroma!1943
Diffstat (limited to 'test')
-rw-r--r--test/plugs/cache_control_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/plugs/cache_control_test.exs b/test/plugs/cache_control_test.exs
index 69ce6cc7d..be78b3e1e 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, no-cache"]
+ assert Conn.get_resp_header(conn, "cache-control") == ["public max-age=86400 must-revalidate"]
end
test "Verify Cache-Control header on the API", %{conn: conn} do