+ my %headers;
+ $headers{'-charset'} = 'UTF-8';
+ $headers{'-type'} = get_mime( $opts->{format}, 'text/plain' );
+ $headers{'-content-encoding'} = $encoding{$opts->{format}} if exists $encoding{$opts->{format}};
+ my ($size,$mtime) = (stat("$wwwdir/$path"))[7,9];
+ $headers{'-content-length'} = $size;
+ $headers{'-vary'} = 'negotiate,accept-language';
+ $headers{'-last-modified'} = strftime("%a, %d %b %Y %T %z", localtime($mtime));
+ $headers{'-expires'} = strftime("%a, %d %b %Y %T %z", localtime($mtime+(12*3600)));
+ print header( %headers );