Skip to content

Commit ae0f4de

Browse files
committed
Fix tests
1 parent 444728b commit ae0f4de

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-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: 5 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,8 @@ 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 =>
145+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
145146
}
146147
);
147148

t/controller/home.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ 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 =>
19+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
1920
}
2021
);
2122

t/controller/source.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ 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 =>
29+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
2930
}
3031
);
3132

@@ -43,7 +44,7 @@ test_psgi app, sub {
4344
surrogate_key =>
4445
'SOURCE dist=MOOSE author=ETHER content_type=text/html content_type=text',
4546
surrogate_control =>
46-
'max-age=31556952, stale-if-error=2592000',
47+
'max-age=31556952, stale-while-revalidate=86400, stale-if-error=2592000',
4748
}
4849
);
4950

0 commit comments

Comments
 (0)