screenshots now cached
All checks were successful
/ Build BaseBand Website (push) Successful in 15s

This commit is contained in:
Daniella / Tove 2024-10-14 16:41:16 +02:00
parent 94a2a388de
commit e1fa246e3d
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -2,6 +2,7 @@
"#httpserver/static.spl" import "#httpserver/static.spl" import
1024 64 * net:http:server:=bufsize 1024 64 * net:http:server:=bufsize
60 20 * net:http:server:=client-cache
func destub { html | with html title ; func destub { html | with html title ;
stub.html stub.html
@ -45,7 +46,7 @@ func handle-client { | with client ;
client client
:serve-html-string<index.html "/"> :serve-html-string<index.html "/">
:serve-html-string<features.html "/features"> :serve-html-string<features.html "/features">
: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_ingame.png" "/screenshots/ingame.png" "image/png">
:serve-file-cached<"screenshot_selection.png" "/screenshots/selection.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"> :serve-file-cached<"screenshot_seedoverlay_generating.png" "/screenshots/seedoverlay/generating.png" "image/png">