Skip to content

Commit da84e35

Browse files
committed
mm yes SEO
1 parent a8f8181 commit da84e35

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ new Elysia()
1414
.use(wrap(log))
1515
// Use HTML plugin for rendering the index page
1616
.use(html())
17-
.get("/styles.css", () => new Response(Bun.file(new URL("./pub/styles.css", import.meta.url)), { headers: { "Content-Type": "text/css" } }))
17+
.get("/styles.css", () => new Response(Bun.file(new URL("./pub/styles.css", import.meta.url)), { headers: { "Content-Type": "text/css", "Cache-Control": "public, max-age=31536000" } }))
18+
.get("/favicon.ico", () => new Response(Bun.file(new URL("./pub/favicon.ico", import.meta.url)), { headers: { "Content-Type": "image/x-icon", "Cache-Control": "public, max-age=31536000" } }))
1819
.get("/", async () => {
1920
const activeGroups = [];
2021
for (const group of config.allowedGroups) {

src/pub/favicon.ico

4.33 KB
Binary file not shown.

src/pub/index.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@ const index = ({ activeGroups, cacheDuration, maxReq, maxReqWindow }: { activeGr
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
7+
<meta name="description" content="Celestrak TLE caching server" />
8+
<meta name="keywords" content="TLE, Celestrak, satellite, cache, satrx" />
9+
<meta name="author" content="MrTalon63" />
10+
<meta name="theme-color" content="#3c4258" />
11+
<meta property="og:title" content="ReTLEctor" />
12+
<meta property="og:description" content="Celestrak TLE caching server" />
13+
<meta property="og:type" content="website" />
14+
<meta name="twitter:card" content="summary" />
15+
<meta name="twitter:title" content="ReTLEctor" />
16+
<meta name="twitter:description" content="Celestrak TLE caching server" />
17+
<meta name="robots" content="index, follow" />
18+
<link rel="canonical" href="https://retlector.eu" />
19+
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
620
<title>ReTLEctor</title>
721
<link rel="stylesheet" href="/styles.css" />
822
</head>

0 commit comments

Comments
 (0)