Increase cache duration to 24 hours and implement local storage caching for Pokémon data with lazy loading for images

This commit is contained in:
vista-man
2025-03-25 13:51:25 +01:00
parent 4211738f17
commit 8388831301
2 changed files with 68 additions and 33 deletions

View File

@@ -10,7 +10,7 @@ if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
header("Cache-Control: max-age=3600"); // Cache for 1 hour
header("Cache-Control: max-age=86400"); // Cache for 24 hours
if (isset($_GET['id'])) {
$id = intval($_GET['id']);