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 committed 2025-03-25 13:51:25 +01:00
1 parent 4211738f17
commit 8388831301
2 files changed
+68 -33

No files matched your search

+1 -1
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']);