Skip to content

Commit 6f30e75

Browse files
mcollinagithub-actions[bot]
authored andcommitted
chore: update cache tests
1 parent 35f5d45 commit 6f30e75

File tree

17 files changed

+138
-157
lines changed

17 files changed

+138
-157
lines changed

test/fixtures/cache-tests/results/apache.json

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"cdn-date-update-exceed": true,
101101
"cdn-expires-update-exceed": [
102102
"Assertion",
103-
"Response 2 header Expires is \"null\", not \"Tue, 09 Jul 2024 01:05:30 GMT\""
103+
"Response 2 header Expires is \"null\", not \"Tue, 21 Jan 2025 00:20:15 GMT\""
104104
],
105105
"cdn-fresh-cc-nostore": [
106106
"Assertion",
@@ -340,7 +340,10 @@
340340
"headers-store-Cache-Control": true,
341341
"headers-store-Clear-Site-Data": true,
342342
"headers-store-Connection": true,
343-
"headers-store-Content-Encoding": true,
343+
"headers-store-Content-Encoding": [
344+
"AbortError",
345+
"This operation was aborted"
346+
],
344347
"headers-store-Content-Foo": true,
345348
"headers-store-Content-Length": true,
346349
"headers-store-Content-Location": true,
@@ -493,11 +496,11 @@
493496
"other-cookie": true,
494497
"other-date-update": [
495498
"Assertion",
496-
"Response 2 header Date is \"Tue, 09 Jul 2024 01:05:24 GMT\", not \"Tue, 09 Jul 2024 01:05:21 GMT\""
499+
"Response 2 header Date is \"Tue, 21 Jan 2025 00:20:09 GMT\", not \"Tue, 21 Jan 2025 00:20:06 GMT\""
497500
],
498501
"other-date-update-expires": [
499502
"Assertion",
500-
"Response 2 header Date is \"Tue, 09 Jul 2024 01:05:24 GMT\", not \"Tue, 09 Jul 2024 01:05:21 GMT\""
503+
"Response 2 header Date is \"Tue, 21 Jan 2025 00:20:09 GMT\", not \"Tue, 21 Jan 2025 00:20:06 GMT\""
501504
],
502505
"other-date-update-expires-update": true,
503506
"other-fresh-content-disposition-attachment": true,
@@ -545,27 +548,42 @@
545548
"query-args-different": true,
546549
"query-args-same": true,
547550
"stale-503": true,
548-
"stale-close": true,
551+
"stale-close": [
552+
"TypeError",
553+
"fetch failed"
554+
],
549555
"stale-close-must-revalidate": [
550-
"Assertion",
551-
"Response 2 comes from cache"
556+
"TypeError",
557+
"fetch failed"
552558
],
553559
"stale-close-no-cache": [
554-
"Assertion",
555-
"Response 2 comes from cache"
560+
"TypeError",
561+
"fetch failed"
556562
],
557563
"stale-close-proxy-revalidate": [
558-
"Assertion",
559-
"Response 2 comes from cache"
564+
"TypeError",
565+
"fetch failed"
560566
],
561567
"stale-close-s-maxage=2": [
562-
"Assertion",
563-
"Response 2 comes from cache"
568+
"AbortError",
569+
"This operation was aborted"
570+
],
571+
"stale-sie-503": [
572+
"TypeError",
573+
"fetch failed"
574+
],
575+
"stale-sie-close": [
576+
"TypeError",
577+
"fetch failed"
578+
],
579+
"stale-warning-become": [
580+
"TypeError",
581+
"fetch failed"
582+
],
583+
"stale-warning-stored": [
584+
"TypeError",
585+
"fetch failed"
564586
],
565-
"stale-sie-503": true,
566-
"stale-sie-close": true,
567-
"stale-warning-become": true,
568-
"stale-warning-stored": true,
569587
"stale-while-revalidate": [
570588
"Assertion",
571589
"Response 2 does not come from cache"

test/fixtures/cache-tests/results/caddy.json

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@
178178
"cdn-date-update-exceed": true,
179179
"cdn-expires-update-exceed": [
180180
"Assertion",
181-
"Response 2 header Expires is \"null\", not \"Tue, 09 Jul 2024 01:03:11 GMT\""
181+
"Response 2 header Expires is \"null\", not \"Tue, 21 Jan 2025 00:23:23 GMT\""
182182
],
183183
"cdn-fresh-cc-nostore": true,
184184
"cdn-max-age": true,
@@ -205,7 +205,10 @@
205205
"Assertion",
206206
"Response 2 comes from cache"
207207
],
208-
"cdn-no-store-cc-fresh": true,
208+
"cdn-no-store-cc-fresh": [
209+
"Assertion",
210+
"Response 2 comes from cache"
211+
],
209212
"cdn-private": true,
210213
"cdn-remove-age-exceed": [
211214
"Assertion",
@@ -287,28 +290,28 @@
287290
"Assertion",
288291
"Response 2 does not come from cache"
289292
],
290-
"freshness-expires-age-fast-date": true,
291-
"freshness-expires-age-slow-date": true,
292-
"freshness-expires-ansi-c": [
293+
"freshness-expires-age-fast-date": [
293294
"Assertion",
294-
"Response 2 does not come from cache"
295+
"Response 2 comes from cache"
295296
],
296-
"freshness-expires-far-future": [
297+
"freshness-expires-age-slow-date": [
298+
"Assertion",
299+
"Response 2 comes from cache"
300+
],
301+
"freshness-expires-ansi-c": [
297302
"Assertion",
298303
"Response 2 does not come from cache"
299304
],
300-
"freshness-expires-future": [
305+
"freshness-expires-far-future": [
301306
"Assertion",
302307
"Response 2 does not come from cache"
303308
],
309+
"freshness-expires-future": true,
304310
"freshness-expires-invalid": true,
305311
"freshness-expires-invalid-1-digit-hour": true,
306312
"freshness-expires-invalid-2-digit-year": true,
307313
"freshness-expires-invalid-aest": true,
308-
"freshness-expires-invalid-date": [
309-
"Assertion",
310-
"Response 2 does not come from cache"
311-
],
314+
"freshness-expires-invalid-date": true,
312315
"freshness-expires-invalid-date-dashes": true,
313316
"freshness-expires-invalid-multiple-lines": true,
314317
"freshness-expires-invalid-multiple-spaces": true,
@@ -390,25 +393,22 @@
390393
"freshness-none": true,
391394
"freshness-s-maxage-shared": true,
392395
"head-200-freshness-update": [
393-
"FetchError",
394-
"request to http://localhost:8006/test/3a29d44d-d103-492b-9046-be67546d71d7 failed, reason: Parse Error: Empty Content-Length"
396+
"Assertion",
397+
"Response 3 does not come from cache"
395398
],
396399
"head-200-retain": [
397-
"FetchError",
398-
"request to http://localhost:8006/test/d07b2651-4270-4ea6-ae9f-041b1b82aae8 failed, reason: Parse Error: Empty Content-Length"
400+
"Assertion",
401+
"Response 2 header Template-A is \"null\", not \"1\""
399402
],
400403
"head-200-update": [
401-
"FetchError",
402-
"request to http://localhost:8006/test/eb317c8b-cea4-4b4c-b72b-71df1aa6e863 failed, reason: Parse Error: Empty Content-Length"
404+
"Setup",
405+
"Response 3 does not come from cache"
403406
],
404407
"head-410-update": [
405-
"FetchError",
406-
"request to http://localhost:8006/test/7f947275-bffe-4c72-a493-c64352423d8e failed, reason: Parse Error: Empty Content-Length"
407-
],
408-
"head-writethrough": [
409-
"FetchError",
410-
"request to http://localhost:8006/test/f9b80f6e-7980-4a44-ae58-d58ac539223c failed, reason: Parse Error: Empty Content-Length"
408+
"Setup",
409+
"Response 3 does not come from cache"
411410
],
411+
"head-writethrough": true,
412412
"headers-omit-headers-listed-in-Cache-Control-no-cache": [
413413
"Setup",
414414
"Response 2 does not come from cache"
@@ -586,10 +586,7 @@
586586
"Response 1 age header not present."
587587
],
588588
"other-age-gen": true,
589-
"other-age-update-expires": [
590-
"Assertion",
591-
"Response 2 does not come from cache"
592-
],
589+
"other-age-update-expires": true,
593590
"other-age-update-max-age": true,
594591
"other-authorization": true,
595592
"other-authorization-must-revalidate": [
@@ -606,14 +603,8 @@
606603
],
607604
"other-cookie": true,
608605
"other-date-update": true,
609-
"other-date-update-expires": [
610-
"Assertion",
611-
"Response 2 does not come from cache"
612-
],
613-
"other-date-update-expires-update": [
614-
"Assertion",
615-
"Response 2 does not come from cache"
616-
],
606+
"other-date-update-expires": true,
607+
"other-date-update-expires-update": true,
617608
"other-fresh-content-disposition-attachment": true,
618609
"other-heuristic-content-disposition-attachment": [
619610
"Assertion",
@@ -658,10 +649,7 @@
658649
"Response 2 status is 200, not 206"
659650
],
660651
"pragma-request-extension": true,
661-
"pragma-request-no-cache": [
662-
"Assertion",
663-
"Response 2 does not come from cache"
664-
],
652+
"pragma-request-no-cache": true,
665653
"pragma-response-extension": true,
666654
"pragma-response-no-cache": true,
667655
"pragma-response-no-cache-heuristic": [
@@ -806,10 +794,7 @@
806794
"vary-invalidate": true,
807795
"vary-match": true,
808796
"vary-no-match": true,
809-
"vary-normalise-combine": [
810-
"Assertion",
811-
"Response 2 does not come from cache"
812-
],
797+
"vary-normalise-combine": true,
813798
"vary-normalise-lang-case": [
814799
"Assertion",
815800
"Response 2 does not come from cache"

test/fixtures/cache-tests/results/fastly.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"cdn-date-update-exceed": true,
173173
"cdn-expires-update-exceed": [
174174
"Assertion",
175-
"Response 2 header Expires is \"null\", not \"Tue, 09 Jul 2024 01:17:30 GMT\""
175+
"Response 2 header Expires is \"null\", not \"Tue, 21 Jan 2025 00:41:28 GMT\""
176176
],
177177
"cdn-fresh-cc-nostore": [
178178
"Assertion",
@@ -637,11 +637,11 @@
637637
"other-cookie": true,
638638
"other-date-update": [
639639
"Assertion",
640-
"Response 2 header Date is \"Tue, 09 Jul 2024 01:17:25 GMT\", not \"Tue, 09 Jul 2024 01:17:22 GMT\""
640+
"Response 2 header Date is \"Tue, 21 Jan 2025 00:41:23 GMT\", not \"Tue, 21 Jan 2025 00:41:20 GMT\""
641641
],
642642
"other-date-update-expires": [
643643
"Assertion",
644-
"Response 2 header Date is \"Tue, 09 Jul 2024 01:17:25 GMT\", not \"Tue, 09 Jul 2024 01:17:22 GMT\""
644+
"Response 2 header Date is \"Tue, 21 Jan 2025 00:41:23 GMT\", not \"Tue, 21 Jan 2025 00:41:20 GMT\""
645645
],
646646
"other-date-update-expires-update": true,
647647
"other-fresh-content-disposition-attachment": true,
@@ -821,10 +821,7 @@
821821
"vary-invalidate": true,
822822
"vary-match": true,
823823
"vary-no-match": true,
824-
"vary-normalise-combine": [
825-
"Assertion",
826-
"Response 2 does not come from cache"
827-
],
824+
"vary-normalise-combine": true,
828825
"vary-normalise-lang-case": [
829826
"Assertion",
830827
"Response 2 does not come from cache"

test/fixtures/cache-tests/results/firefox.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@
7373
"cc-resp-must-revalidate-fresh": true,
7474
"cc-resp-must-revalidate-stale": true,
7575
"cc-resp-no-cache": true,
76-
"cc-resp-no-cache-case-insensitive": [
77-
"Assertion",
78-
"Response 2 comes from cache"
79-
],
76+
"cc-resp-no-cache-case-insensitive": true,
8077
"cc-resp-no-cache-revalidate": true,
8178
"cc-resp-no-cache-revalidate-fresh": true,
8279
"cc-resp-no-store": true,
@@ -179,10 +176,7 @@
179176
"Response 2 does not come from cache"
180177
],
181178
"freshness-max-age-age": true,
182-
"freshness-max-age-case-insenstive": [
183-
"Assertion",
184-
"Response 2 does not come from cache"
185-
],
179+
"freshness-max-age-case-insenstive": true,
186180
"freshness-max-age-date": true,
187181
"freshness-max-age-decimal-five": true,
188182
"freshness-max-age-decimal-zero": true,

test/fixtures/cache-tests/results/index.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,54 +4,54 @@ export default [
44
file: 'chrome.json',
55
name: 'Chrome',
66
type: 'browser',
7-
version: '126.0.6478.127'
7+
version: '132.0.6834.84'
88
},
99
{
1010
file: 'firefox.json',
1111
name: 'Firefox',
1212
type: 'browser',
13-
version: '127.0.2',
13+
version: '134.0.1',
1414
link: 'https://github.com/http-tests/cache-tests/wiki/Firefox'
1515
},
1616
{
1717
file: 'safari.json',
1818
name: 'Safari',
1919
type: 'browser',
20-
version: 'Version 17.5 (19618.2.12.11.6)'
20+
version: '18.2 (20620.1.16.11.8)'
2121
},
2222
{
2323
file: 'nginx.json',
2424
name: 'nginx',
2525
type: 'rev-proxy',
26-
version: '1.26.0-1ubuntu2',
26+
version: '1.26.0-3ubuntu1',
2727
link: 'https://github.com/http-tests/cache-tests/wiki/nginx'
2828
},
2929
{
3030
file: 'squid.json',
3131
name: 'Squid',
3232
type: 'rev-proxy',
33-
version: '6.9-1ubuntu1',
33+
version: '6.10-1ubuntu1',
3434
link: 'https://github.com/http-tests/cache-tests/wiki/Squid'
3535
},
3636
{
3737
file: 'trafficserver.json',
3838
name: 'ATS',
3939
type: 'rev-proxy',
40-
version: '9.2.4+ds-2',
40+
version: '9.2.5+ds-1',
4141
link: 'https://github.com/http-tests/cache-tests/wiki/Traffic-Server'
4242
},
4343
{
4444
file: 'apache.json',
4545
name: 'httpd',
4646
type: 'rev-proxy',
47-
version: '2.4.59-2ubuntu2',
47+
version: '2.4.62-3ubuntu1',
4848
link: 'https://github.com/http-tests/cache-tests/wiki/Apache-httpd'
4949
},
5050
{
5151
file: 'varnish.json',
5252
name: 'Varnish',
5353
type: 'rev-proxy',
54-
version: '7.1.1-1.1ubuntu1',
54+
version: '7.5.0-3',
5555
link: 'https://github.com/http-tests/cache-tests/wiki/Varnish'
5656
},
5757
{
@@ -65,7 +65,7 @@ export default [
6565
file: 'fastly.json',
6666
name: 'Fastly',
6767
type: 'cdn',
68-
version: '2024-07-09',
68+
version: '2025-01-21',
6969
link: 'https://github.com/http-tests/cache-tests/wiki/Fastly'
7070
}
7171
]

0 commit comments

Comments
 (0)