Skip to content

Commit ded863a

Browse files
metcoder95github-actions[bot]
authored andcommitted
chore: update cache tests
1 parent 6211fac commit ded863a

File tree

19 files changed

+1341
-96
lines changed

19 files changed

+1341
-96
lines changed

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

Lines changed: 11 additions & 7 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 \"Wed, 29 Jan 2025 03:37:47 GMT\""
103+
"Response 2 header Expires is \"null\", not \"Sat, 24 May 2025 02:02:37 GMT\""
104104
],
105105
"cdn-fresh-cc-nostore": [
106106
"Assertion",
@@ -423,6 +423,10 @@
423423
"heuristic-delta-60": true,
424424
"heuristic-delta-600": true,
425425
"heuristic-delta-86400": true,
426+
"interim-102": true,
427+
"interim-103": true,
428+
"interim-no-header-reuse": true,
429+
"interim-not-cached": true,
426430
"invalidate-DELETE": true,
427431
"invalidate-DELETE-cl": [
428432
"Assertion",
@@ -493,11 +497,11 @@
493497
"other-cookie": true,
494498
"other-date-update": [
495499
"Assertion",
496-
"Response 2 header Date is \"Wed, 29 Jan 2025 03:37:41 GMT\", not \"Wed, 29 Jan 2025 03:37:38 GMT\""
500+
"Response 2 header Date is \"Sat, 24 May 2025 02:02:31 GMT\", not \"Sat, 24 May 2025 02:02:28 GMT\""
497501
],
498502
"other-date-update-expires": [
499503
"Assertion",
500-
"Response 2 header Date is \"Wed, 29 Jan 2025 03:37:41 GMT\", not \"Wed, 29 Jan 2025 03:37:38 GMT\""
504+
"Response 2 header Date is \"Sat, 24 May 2025 02:02:31 GMT\", not \"Sat, 24 May 2025 02:02:28 GMT\""
501505
],
502506
"other-date-update-expires-update": true,
503507
"other-fresh-content-disposition-attachment": true,
@@ -557,19 +561,19 @@
557561
"TypeError",
558562
"fetch failed"
559563
],
560-
"stale-close-proxy-revalidate": [
564+
"stale-close-proxy-revalidate": true,
565+
"stale-close-s-maxage=2": [
561566
"TypeError",
562567
"fetch failed"
563568
],
564-
"stale-close-s-maxage=2": [
569+
"stale-sie-503": [
565570
"TypeError",
566571
"fetch failed"
567572
],
568-
"stale-sie-503": [
573+
"stale-sie-close": [
569574
"TypeError",
570575
"fetch failed"
571576
],
572-
"stale-sie-close": true,
573577
"stale-warning-become": [
574578
"TypeError",
575579
"fetch failed"

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

Lines changed: 21 additions & 17 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, 21 Jan 2025 00:23:23 GMT\""
181+
"Response 2 header Expires is \"null\", not \"Sat, 24 May 2025 02:05:19 GMT\""
182182
],
183183
"cdn-fresh-cc-nostore": true,
184184
"cdn-max-age": true,
@@ -537,6 +537,22 @@
537537
"Assertion",
538538
"Response 2 does not come from cache"
539539
],
540+
"interim-102": [
541+
"Assertion",
542+
"Interim response 1 not received"
543+
],
544+
"interim-103": [
545+
"Assertion",
546+
"Interim response 1 not received"
547+
],
548+
"interim-no-header-reuse": [
549+
"Assertion",
550+
"Interim response 1 not received"
551+
],
552+
"interim-not-cached": [
553+
"Assertion",
554+
"Interim response 1 not received"
555+
],
540556
"invalidate-DELETE": true,
541557
"invalidate-DELETE-cl": [
542558
"Assertion",
@@ -666,22 +682,10 @@
666682
"Assertion",
667683
"Response 2 does not come from cache"
668684
],
669-
"stale-close-must-revalidate": [
670-
"Assertion",
671-
"Response 2 comes from cache"
672-
],
673-
"stale-close-no-cache": [
674-
"Assertion",
675-
"Response 2 comes from cache"
676-
],
677-
"stale-close-proxy-revalidate": [
678-
"Assertion",
679-
"Response 2 comes from cache"
680-
],
681-
"stale-close-s-maxage=2": [
682-
"Assertion",
683-
"Response 2 comes from cache"
684-
],
685+
"stale-close-must-revalidate": true,
686+
"stale-close-no-cache": true,
687+
"stale-close-proxy-revalidate": true,
688+
"stale-close-s-maxage=2": true,
685689
"stale-sie-503": [
686690
"Assertion",
687691
"Response 2 does not come from cache"

0 commit comments

Comments
 (0)