Skip to content

Commit 0fae059

Browse files
committedJun 5, 2025
Fix tests
1 parent 8b9ac53 commit 0fae059

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed
 

‎t/controller/about.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test_psgi app, sub {
2727
surrogate_key =>
2828
'ABOUT STATIC content_type=text/html content_type=text',
2929
surrogate_control =>
30-
'max-age=31556952, stale-if-error=2592000',
30+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
3131
}
3232
);
3333
}

‎t/controller/feed.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test_psgi app, sub {
4747
surrogate_key =>
4848
'RECENT DIST_UPDATES content_type=application/rss+xml content_type=application',
4949
surrogate_control =>
50-
'max-age=31556952, stale-if-error=2592000',
50+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
5151
}
5252
);
5353
}
@@ -73,7 +73,7 @@ test_psgi app, sub {
7373
surrogate_key =>
7474
'author=PERLER content_type=application/rss+xml content_type=application',
7575
surrogate_control =>
76-
'max-age=31556952, stale-if-error=2592000',
76+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
7777
}
7878
);
7979
}
@@ -90,7 +90,7 @@ test_psgi app, sub {
9090
surrogate_key =>
9191
'dist=MOOSE content_type=application/rss+xml content_type=application',
9292
surrogate_control =>
93-
'max-age=31556952, stale-if-error=2592000',
93+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
9494
}
9595
);
9696
}
@@ -141,7 +141,7 @@ sub test_redirect {
141141
{
142142
cache_control => 'max-age=31556952',
143143
surrogate_key => 'content_type=text/html content_type=text',
144-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
144+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
145145
}
146146
);
147147

‎t/controller/home.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ test_psgi app, sub {
1515
cache_control => 'max-age=3600',
1616
surrogate_key =>
1717
'HOMEPAGE content_type=text/html content_type=text',
18-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
18+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
1919
}
2020
);
2121

‎t/controller/source.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test_psgi app, sub {
2525
cache_control => 'max-age=3600',
2626
surrogate_key =>
2727
'SOURCE dist=MOOSE author=ETHER content_type=text/html content_type=text',
28-
surrogate_control => 'max-age=31556952, stale-if-error=2592000',
28+
surrogate_control => 'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
2929
}
3030
);
3131

@@ -43,7 +43,7 @@ test_psgi app, sub {
4343
surrogate_key =>
4444
'SOURCE dist=MOOSE author=ETHER content_type=text/html content_type=text',
4545
surrogate_control =>
46-
'max-age=31556952, stale-if-error=2592000',
46+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
4747
}
4848
);
4949

0 commit comments

Comments
 (0)