<?php
/* 图标输出（网页版 favicon / 添加到主屏幕图标）
   为什么要有这个文件：服务器对静态资源开了防盗链，不带 Referer 的请求会 404，
   而 favicon、apple-touch-icon、PWA 图标都是浏览器自动发起的请求（不带 Referer），
   走 PHP 输出最稳。数据源就是同目录的 appIcon.png。 */
$file = __DIR__ . '/appIcon.png';
if (!is_file($file)) {
	http_response_code(404);
	exit;
}

header('Content-Type: image/png');
header('Content-Length: ' . filesize($file));
header('Cache-Control: public, max-age=2592000');
header('Access-Control-Allow-Origin: *');
readfile($file);
