projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set better Cache-Control header for static content
[akkoma]
/
test
/
plugs
/
cache_control_test.exs
diff --git
a/test/plugs/cache_control_test.exs
b/test/plugs/cache_control_test.exs
index 45151b28971d71de3a5e5fe340e7baf2a5002f85..8f0af264ef7bcbe4212858d84db34573f77a086e 100644
(file)
--- 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")
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-cach
e"]
+ assert Conn.get_resp_header(conn, "cache-control") == ["public
max-age=86400 must-revalidat
e"]
end
test "Verify Cache-Control header on the API", %{conn: conn} do
end
test "Verify Cache-Control header on the API", %{conn: conn} do