Skip to content

Commit 9ca309a

Browse files
committed
fix browser max age for search
1 parent 547b904 commit 9ca309a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/MetaCPAN/Web/Controller/Search.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ sub index : Path : Args(0) {
2222
# Redirect back to main page if search query is empty irrespective of
2323
# whether we're feeling lucky or not.
2424
unless ( $req->param('q') ) {
25-
$c->browser_max_age('1w');
25+
$c->browser_max_age('7d');
2626
$c->res->redirect('/');
2727
$c->detach;
2828
}

0 commit comments

Comments
 (0)