-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_headers
More file actions
21 lines (17 loc) · 795 Bytes
/
Copy path_headers
File metadata and controls
21 lines (17 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Cloudflare Pages headers — https://developers.cloudflare.com/pages/configuration/headers/
# The digest is rebuilt daily; always revalidate so returning visitors get fresh
# data (a 304 when unchanged keeps it cheap).
/data/changes.js
Cache-Control: public, max-age=0, must-revalidate
# Self-hosted font never changes — cache hard.
/assets/fonts/*
Cache-Control: public, max-age=31536000, immutable
# App shell: always revalidate so a deploy reaches returning visitors immediately
# (a 304 when unchanged keeps it cheap). The service worker handles offline.
/css/*
Cache-Control: public, max-age=0, must-revalidate
/js/*
Cache-Control: public, max-age=0, must-revalidate
# Never let the service worker itself go stale.
/sw.js
Cache-Control: public, max-age=0, must-revalidate