Set better Cache-Control header for static content
[akkoma] / test / plugs / cache_control_test.exs
index 45151b28971d71de3a5e5fe340e7baf2a5002f85..8f0af264ef7bcbe4212858d84db34573f77a086e 100644 (file)
@@ -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