Skip to content

Commit 74a2bdb

Browse files
committed
fix: performance optimizations and robots.txt
1 parent c5e9d90 commit 74a2bdb

18 files changed

+223
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ pnpm-debug.log*
2929
# typescript
3030
*.tsbuildinfo
3131
next-env.d.ts
32+
nohup.out
33+
public/images-backup/

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "next build",
1010
"start": "next start",
1111
"lint": "next lint",
12-
"images:build": "node scripts/convert-images-to-webp.mjs"
12+
"images:build": "node scripts/convert-images-to-webp.mjs",
13+
"images:optimize": "node scripts/optimize-images.mjs"
1314
},
1415
"dependencies": {
1516
"@t3-oss/env-nextjs": "^0.11.0",

public/_headers

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Cache static assets aggressively (images, fonts, JS, CSS)
2+
/images/*
3+
Cache-Control: public, max-age=31536000, immutable
4+
5+
/fonts/*
6+
Cache-Control: public, max-age=31536000, immutable
7+
8+
/_next/static/*
9+
Cache-Control: public, max-age=31536000, immutable
10+
11+
/*.mp3
12+
Cache-Control: public, max-age=31536000, immutable
13+
14+
# HTML pages — short cache, always revalidate
15+
/*.html
16+
Cache-Control: public, max-age=0, must-revalidate
17+
18+
/
19+
Cache-Control: public, max-age=0, must-revalidate
-409 KB
Loading
-912 KB
Loading

public/images/amadeus.webp

-691 KB
Loading

public/images/atchan.webp

-18.6 KB
Loading

public/images/atchan_banner.webp

-547 KB
Loading
-5 MB
Loading

public/images/lokmandevlogo.webp

-1.22 MB
Loading

0 commit comments

Comments
 (0)