diff options
Diffstat (limited to 'util/vndb.pl')
-rwxr-xr-x | util/vndb.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index b91aac56..46ff9e0d 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -50,6 +50,14 @@ TUWF::run(); sub reqinit { my $self = shift; + # If we're running standalone, serve www/ and static/ too. + if($TUWF::OBJ->{_TUWF}{http}) { + if($self->resFile("$ROOT/www", $self->reqPath) || $self->resFile("$ROOT/static", $self->reqPath)) { + $self->resHeader('Cache-Control' => 'max-age=31536000'); + return 0; + } + } + # check authentication cookies $self->authInit; |