mirror of
https://github.com/Alvin-Zilverstand/pokedex.git
synced 2026-12-02 19:11:22 +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:
1 parent
4211738f17
commit
8388831301
2 files changed
+68
-33
No files matched your search
+1
-1
@@ -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