Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
perltidy
  • Loading branch information
ranguard committed May 18, 2015
1 parent 1304cfb commit f156b05
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.psgi
Expand Up @@ -199,14 +199,15 @@ else {
# But NO instructions for...
# /source/Foo::bar <- latest package (no 3rd /)
# /source/AUTHOR/ <- author package list, nothing after 3rd /
enable_if { $_[0]->{PATH_INFO} =~ m{^/source/.+/.+} } 'Headers', set => [
enable_if { $_[0]->{PATH_INFO} =~ m{^/source/.+/.+} } 'Headers',
set => [
'Surrogate-Control' => "max-age=${year_ttl}",
'Surrogate-Key' => 'source',

# Tell the user's browser to cache for an hour,
# incase the regex isn't quite right!
'Cache-Control' => "max-age=${hour_ttl}",
];
];

$app;
};
Expand Down

0 comments on commit f156b05

Please sign in to comment.