add fun easter egg

This commit is contained in:
KingKDot
2026-04-18 01:00:14 -05:00
parent daa91d9490
commit cc4fe570ab
4 changed files with 32 additions and 1 deletions
+1
View File
@@ -23,5 +23,6 @@ export function mimeType(path: string) {
if (path.endsWith(".png")) return "image/png";
if (path.endsWith(".jpg") || path.endsWith(".jpeg")) return "image/jpeg";
if (path.endsWith(".webp")) return "image/webp";
if (path.endsWith(".gif")) return "image/gif";
return "application/octet-stream";
}
@@ -30,7 +30,7 @@ function assetCacheControl(relativePath: string): string {
if (relativePath.endsWith(".min.js") || relativePath.endsWith(".min.css")) {
return STATIC_ASSET_CACHE;
}
if (/\.(ico|png|jpg|jpeg|webp|woff2?|ttf|eot|svg)$/.test(relativePath)) {
if (/\.(ico|png|jpg|jpeg|gif|webp|woff2?|ttf|eot|svg)$/.test(relativePath)) {
return STATIC_ASSET_CACHE;
}
return MUTABLE_ASSET_CACHE;