mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-03-06 11:07:31 +01:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user