misc updates to server code; improve Cache-Control settings

This commit is contained in:
2025-05-11 15:31:09 -07:00
parent c84e04e784
commit 10f7e9bebb
3 changed files with 15 additions and 15 deletions

View File

@ -29,4 +29,4 @@
(with [f (open path "rb")]
(setv data (.read f)))
(return #({"Content-Type" mime-type "Cache-Control" "max-age=0, stale-while-revalidate=31536000"} data)))
(return #({"Content-Type" mime-type "Cache-Control" "max-age=300, stale-while-revalidate=3600"} data)))