From f67158cf63170246cc50c1053aecad1f45bd7205 Mon Sep 17 00:00:00 2001 From: leosw Date: Tue, 20 Oct 2026 17:14:24 +0200 Subject: [PATCH] Cache de 24h des tuiles sur le navigateur --- src/Controllers/d.poi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/d.poi.php b/src/Controllers/d.poi.php index eaf8719..86a40f0 100755 --- a/src/Controllers/d.poi.php +++ b/src/Controllers/d.poi.php @@ -158,7 +158,7 @@ switch ($controller->splitted_url[1]) { // Cache hit if (is_file($cacheFile)) { header('Content-Type: application/x-protobuf'); - header('Cache-Control: public, max-age=31536000, immutable'); + header('Cache-Control: public, max-age=86400'); header('X-Cache: HIT'); readfile($cacheFile); exit; @@ -197,7 +197,7 @@ switch ($controller->splitted_url[1]) { rename($tmp, $cacheFile); header('Content-Type: application/x-protobuf'); - header('Cache-Control: public, max-age=31536000, immutable'); + header('Cache-Control: public, max-age=86400'); header('X-Cache: MISS'); echo $tile; break;