Skip to content

Commit

Permalink
Take two
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Aug 12, 2024
1 parent f3b6de1 commit 3fcb920
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Succession/bin/app.psgi
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ use Succession;

use DateTime;
use DateTime::Format::HTTP;
use FindBin '$RealBin';

my $thirty_days = DateTime::Format::HTTP->format_datetime(DateTime->now->add(days => 30));

builder {
enable 'Headers',
when => ['Content-Type' => qr{^text/css}],
set => ['Expires' => $thirty_days, 'Cache-Control' => 'max-age=2592000'];
# enable 'Static',
# path => qr{^/(images|css)/},
# root => './public/';
enable 'Static',
path => qr{^/(images|css)/},
root => "$RealBin/../public/";
Succession->to_app;
}

0 comments on commit 3fcb920

Please sign in to comment.