Skip to content

Commit 260b805

Browse files
authored
Drop cache control on non-cachable files
Ref h5bp/server-configs-nginx#314
1 parent af91559 commit 260b805

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

lib/basic-file-access.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{
2727
"target": "test.appcache",
2828
"responseHeaders": {
29-
"Cache-Control": "max-age=0"
29+
"Cache-Control": null
3030
}
3131
},
3232
{
@@ -85,7 +85,7 @@
8585
{
8686
"target": "test.geojson",
8787
"responseHeaders": {
88-
"Cache-Control": "max-age=0"
88+
"Cache-Control": null
8989
}
9090
},
9191
{
@@ -101,7 +101,7 @@
101101
{
102102
"target": "test.html",
103103
"responseHeaders": {
104-
"Cache-Control": "max-age=0",
104+
"Cache-Control": null,
105105
"Content-Security-Policy": true,
106106
"Permissions-Policy": true,
107107
"Referrer-Policy": "strict-origin-when-cross-origin",
@@ -125,7 +125,7 @@
125125
{
126126
"target": "test.ics",
127127
"responseHeaders": {
128-
"Cache-Control": "max-age=0"
128+
"Cache-Control": null
129129
}
130130
},
131131
{
@@ -161,13 +161,13 @@
161161
{
162162
"target": "test.json",
163163
"responseHeaders": {
164-
"Cache-Control": "max-age=0"
164+
"Cache-Control": null
165165
}
166166
},
167167
{
168168
"target": "test.jsonld",
169169
"responseHeaders": {
170-
"Cache-Control": "max-age=0"
170+
"Cache-Control": null
171171
}
172172
},
173173
"test.m4a",
@@ -180,19 +180,19 @@
180180
{
181181
"target": "test.map",
182182
"responseHeaders": {
183-
"Cache-Control": "max-age=0"
183+
"Cache-Control": null
184184
}
185185
},
186186
{
187187
"target": "test.markdown",
188188
"responseHeaders": {
189-
"Cache-Control": "max-age=0"
189+
"Cache-Control": null
190190
}
191191
},
192192
{
193193
"target": "test.md",
194194
"responseHeaders": {
195-
"Cache-Control": "max-age=0"
195+
"Cache-Control": null
196196
}
197197
},
198198
{
@@ -339,7 +339,7 @@
339339
{
340340
"target": "test.webapp",
341341
"responseHeaders": {
342-
"Cache-Control": "max-age=0"
342+
"Cache-Control": null
343343
}
344344
},
345345
"test.webm",
@@ -379,7 +379,7 @@
379379
{
380380
"target": "test.xml",
381381
"responseHeaders": {
382-
"Cache-Control": "max-age=0",
382+
"Cache-Control": null,
383383
"Content-Security-Policy": true,
384384
"Permissions-Policy": true,
385385
"Referrer-Policy": "strict-origin-when-cross-origin",
@@ -424,13 +424,14 @@
424424
"Access-Control-Allow-Origin": null,
425425
"X-Powered-By": null,
426426
"X-Content-Type-Options": "nosniff",
427-
"Cache-Control": "max-age=0",
427+
"Cache-Control": null,
428428
"Content-Security-Policy": true,
429429
"Permissions-Policy": true,
430430
"Referrer-Policy": "strict-origin-when-cross-origin",
431431
"Cross-Origin-Embedder-Policy": "require-corp",
432432
"Cross-Origin-Opener-Policy": "same-origin",
433-
"Cross-Origin-Resource-Policy": "same-origin", "X-Frame-Options": "DENY",
433+
"Cross-Origin-Resource-Policy": "same-origin",
434+
"X-Frame-Options": "DENY",
434435
"Content-Type": "text/html; charset=utf-8",
435436
"Content-Encoding": "gzip"
436437
}

0 commit comments

Comments
 (0)