put http headers at start of code

This commit is contained in:
Tristan Schneider 2024-01-26 17:17:31 +01:00
parent 5613c1a82c
commit 94dc08ee8d

View File

@ -1,3 +1,7 @@
<?php
header("Cache-Control: no-cache, no-store, must-revalidate");
?>
<!DOCTYPE html>
<?php
@ -13,9 +17,6 @@ function get_color_from_ip($ip) {
return $css;
}
//header("refresh: 28");
header("Cache-Control: no-cache, no-store, must-revalidate");
if (!is_dir("data")) {
// initialize everything
mkdir("data", 0755);