X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/d47666a5217b7c6274f8b76fe99027c2923d1d25..ca8caa9227ad9151bd57ab7eccab2c8947ea55da:/common.inc.plp diff --git a/common.inc.plp b/common.inc.plp index 72a0eb8..1e3f30a 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -34,7 +34,7 @@ sub stylesheet { return join "\n", map { sprintf( '', - $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css", $_ + $_ eq $style ? 'stylesheet' : 'alternate stylesheet', "/$_.css?1.5", $_ ) } @_; } @@ -61,9 +61,10 @@ sub Html { # announce and check data modification checkmodified( $ENV{SCRIPT_FILENAME}, - (grep { /^Shiar_/ } values %INC), + (grep { /\bShiar_/ } values %INC), $meta->{data} ? @{ $meta->{data} } : (), ); + $header{'Cache-Control'} = sprintf 'max-age: ', 24*60*60; # default fallbacks $meta->{stylesheet} ||= [qw'light dark circus mono red terse']; @@ -111,7 +112,7 @@ EOT PLP_END { print <<"EOT";