From e1fa246e3da603f36a3cc79ca95179a7369455dc Mon Sep 17 00:00:00 2001 From: TudbuT Date: Mon, 14 Oct 2024 16:41:16 +0200 Subject: [PATCH] screenshots now cached --- server.spl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.spl b/server.spl index 966dc53..dc5ef11 100644 --- a/server.spl +++ b/server.spl @@ -2,6 +2,7 @@ "#httpserver/static.spl" import 1024 64 * net:http:server:=bufsize +60 20 * net:http:server:=client-cache func destub { html | with html title ; stub.html @@ -45,7 +46,7 @@ func handle-client { | with client ; client :serve-html-string :serve-html-string - :serve-file-cached<"style.css" "/style.css" "text/css"> + :serve-file<"style.css" "/style.css" "text/css"> :serve-file-cached<"screenshot_ingame.png" "/screenshots/ingame.png" "image/png"> :serve-file-cached<"screenshot_selection.png" "/screenshots/selection.png" "image/png"> :serve-file-cached<"screenshot_seedoverlay_generating.png" "/screenshots/seedoverlay/generating.png" "image/png">