mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Add more cache-control headers to sql.php
This commit is contained in:
parent
b625af695c
commit
ceb31b68eb
@ -162,6 +162,8 @@ if (startsWith($path, "/maps/")) {
|
||||
|
||||
// return result
|
||||
if ($line = $statement->fetch()) {
|
||||
header("Cache-Control: public,max-age=86400");
|
||||
|
||||
if ($compression !== "none")
|
||||
header("Content-Encoding: $compression");
|
||||
if ($lod === 0) {
|
||||
@ -196,6 +198,7 @@ if (startsWith($path, "/maps/")) {
|
||||
$statement->execute();
|
||||
|
||||
if ($line = $statement->fetch()) {
|
||||
header("Cache-Control: public,max-age=86400");
|
||||
header("Content-Type: ".getMimeType($mapPath));
|
||||
send($line["value"]);
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user