X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/aaca88ef9f8362a7b895db25ddd51d767502deeb..153fca5bc148960bb538bfc43b79b944608d2b2f:/common.inc.plp
diff --git a/common.inc.plp b/common.inc.plp
index 9c5ae74..4bf28bf 100644
--- a/common.inc.plp
+++ b/common.inc.plp
@@ -8,7 +8,7 @@ use open ':std' => ':utf8';
use File::stat 'stat';
use HTTP::Date;
-use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii}
+use Shiar_Sheet::KeySigns qw(%sign);
our $style;
our $showkeys = !exists $get{keys} ? undef :
@@ -64,6 +64,7 @@ sub Html {
(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'];
@@ -86,7 +87,6 @@ sub Html {
ref $_ eq 'ARRAY' and $_ = stylesheet(@$_)."\n" for $meta->{stylesheet};
# other vars
- my $sep = $meta->{charset} eq 'utf-8' ? 'â¢' : ' -- ';
my ($file) = $ENV{SCRIPT_FILENAME} =~ m{ ([^/]+) \.plp$ }x;
# leading output
@@ -115,7 +115,7 @@ EOT
rel="code" title="Written in Perl">plp
$meta->{version}
- created by Shiar $sep
+ created by Shiar $sign{sep}
AGPLv3