We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9c6dc commit 218a939Copy full SHA for 218a939
lib/MetaCPAN/Web/Controller/Root.pm
@@ -113,6 +113,13 @@ Attempt to render a view, if needed.
113
sub end : ActionClass('RenderView') {
114
my ( $self, $c ) = @_;
115
116
+ # This will only affect if `cdn_max_age` has been set.
117
+ # https://www.fastly.com/documentation/guides/concepts/edge-state/cache/stale/
118
+ # If it has then do revalidation in the background
119
+ $c->cdn_stale_while_revalidate('1d');
120
+ # And if there is still an error serve from cache
121
+ $c->cdn_stale_if_error('1y');
122
+
123
# for normal errors, try to render the internal_error page rather
124
my @error = @{ $c->error };
125
if ( @error && !$c->debug ) {
0 commit comments