Cache-bust favicon and apple-touch-icon URLs (v2)

Cloudflare edge cached the old placeholder bytes on the bare
/static/favicon.png and /static/apple-touch-icon.png URLs. The ?v=2
query string forces a fresh origin fetch with zero behavior change.
This commit is contained in:
dev 2026-10-16 12:17:14 +05:30
parent 84060de856
commit 28e4c09e06

View file

@ -91,8 +91,8 @@ fn head(ctx: &Ctx, title: &str) -> String {
r##"<!doctype html><html lang="en"><head><meta charset="utf-8"> r##"<!doctype html><html lang="en"><head><meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
<title>{t} · WhalePrep</title> <title>{t} · WhalePrep</title>
<link rel="icon" type="image/png" href="{b}/static/favicon.png"> <link rel="icon" type="image/png" href="{b}/static/favicon.png?v=2">
<link rel="apple-touch-icon" href="{b}/static/apple-touch-icon.png"> <link rel="apple-touch-icon" href="{b}/static/apple-touch-icon.png?v=2">
<link rel="stylesheet" href="{b}/static/style.css"> <link rel="stylesheet" href="{b}/static/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">