my personal site
1# Cloudflare Pages headers
2# https://developers.cloudflare.com/pages/configuration/headers/
3
4# Enable Early Hints for the homepage
5/
6 Link: </fonts/mozilla-text-400.woff2>; rel=preload; as=font; type="font/woff2"; crossorigin
7 Link: </fonts/mozilla-text-500.woff2>; rel=preload; as=font; type="font/woff2"; crossorigin
8 Link: </fonts/mozilla-text-600.woff2>; rel=preload; as=font; type="font/woff2"; crossorigin
9 Link: </style.css>; rel=preload; as=style
10
11# Cache fonts aggressively (1 year, immutable)
12/fonts/*
13 Cache-Control: public, max-age=31536000, immutable
14
15# Cache static assets
16/*.css
17 Cache-Control: public, max-age=86400
18
19/*.jpg
20 Cache-Control: public, max-age=31536000, immutable