$self->_generate($htc, $lang, @args);
my $out = $htc->output;
utf8::downgrade($out);
- [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1], 'Vary' => 'Accept-Language', 'X-Forever' => 1, 'Cache-Control' => 'max-age=' . $self->max_age], [ $out ] ]
+ my $vary = 'Accept-Language, ' . $self->vary;
+ [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1], 'Vary' => $vary, 'X-Forever' => 1, 'Cache-Control' => 'max-age=' . $self->max_age], [ $out ] ]
}
sub _generate {}
+sub vary {}
+
sub max_age { 60 }
sub variants {