Commit dca9731
committed
Refactor to use managed cache policy
This avoids a super-long TTL on the woff2 files for now (setting to 24 hours),
which matches the TTL used by CloudFront today. In general this should probably
be enough for most purposes. We also add a stale-while-revalidate to let most
users check the resource in the background, rather than waiting on the request
to complete before proceeding.1 parent db992c1 commit dca9731
2 files changed
+28
-23
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
14 | 34 | | |
15 | 35 | | |
16 | 36 | | |
| |||
51 | 71 | | |
52 | 72 | | |
53 | 73 | | |
54 | | - | |
55 | 74 | | |
56 | 75 | | |
57 | 76 | | |
58 | 77 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 78 | + | |
| 79 | + | |
67 | 80 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 81 | | |
72 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
73 | 89 | | |
74 | 90 | | |
75 | 91 | | |
| |||
0 commit comments