aboutsummaryrefslogtreecommitdiff
path: root/p/f.php
diff options
context:
space:
mode:
Diffstat (limited to 'p/f.php')
-rw-r--r--p/f.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/p/f.php b/p/f.php
index eafb92710..71859d6d1 100644
--- a/p/f.php
+++ b/p/f.php
@@ -14,7 +14,7 @@ function show_default_favicon(int $cacheSeconds = 3600): void {
}
}
-$id = $_SERVER['QUERY_STRING'] ?? '0';
+$id = $_GET['h'] ?? '0';
if (!is_string($id) || !ctype_xdigit($id)) {
$id = '0';
}
@@ -53,5 +53,8 @@ if (!httpConditional($ico_mtime, mt_rand(14, 21) * 86400, 2)) {
$ico_content_type = contentType($ico);
header('Content-Type: ' . $ico_content_type);
header('Content-Disposition: inline; filename="' . $id . '.ico"');
+ if (isset($_GET['t'])) {
+ header('Cache-Control: immutable');
+ }
readfile($ico);
}