diff options
author | rinpatch <rinpatch@sdf.org> | 2019-11-06 16:41:19 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-12-13 21:19:55 +0300 |
commit | 66563f93fd73afb7caf35b1b803a9dcb6098dea4 (patch) | |
tree | 2763be04ee8312640d86aaee9391f6deb390d51e /test | |
parent | b7370ab51363839f7c1f291b693e17ee9089662c (diff) | |
download | pleroma-66563f93fd73afb7caf35b1b803a9dcb6098dea4.tar.gz |
Set better Cache-Control header for static content
Closes #1382
Diffstat (limited to 'test')
-rw-r--r-- | test/plugs/cache_control_test.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/plugs/cache_control_test.exs b/test/plugs/cache_control_test.exs index 45151b289..8f0af264e 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 |