| 1 | # Static files served by Workers assets, ahead of the app. |
| 2 | |
| 3 | # Fingerprinted by the build: a new file gets a new name, so each can be |
| 4 | # kept for good. That includes the typefaces. |
| 5 | /assets/* |
| 6 | Cache-Control: public, max-age=31536000, immutable |
| 7 | |
| 8 | # Every static file: only the type it says, and a referrer of the origin |
| 9 | # alone, as the Worker's own answers (app/lib/page-headers.ts). |
| 10 | /* |
| 11 | X-Content-Type-Options: nosniff |
| 12 | Referrer-Policy: strict-origin-when-cross-origin |
| 13 | |
| 14 | # The web app manifest, so a phone installs g1t to its home screen. |
| 15 | /manifest.webmanifest |
| 16 | Content-Type: application/manifest+json |
| 17 | |
| 18 | /site.webmanifest |
| 19 | Content-Type: application/manifest+json |
| 20 | |
| 21 | # The service worker (browser notifications only): always checked for a |
| 22 | # newer one, never kept, and allowed to control the whole site. |
| 23 | /sw.js |
| 24 | Cache-Control: no-cache |
| 25 | Service-Worker-Allowed: / |