-# Copyright (C) 2016-2019 all contributors <meta@public-inbox.org>
+# Copyright (C) 2016-2020 all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
# This package can either be a PSGI response body for a static file
return unless -f $gz && (stat(_))[9] == $mtime;
my $res = response($env, $h, $gz, $type);
return if ($res->[0] > 300 || $res->[0] < 200);
- push @{$res->[1]}, qw(Cache-Control no-transform Content-Encoding gzip);
+ push @{$res->[1]}, qw(Cache-Control no-transform
+ Content-Encoding gzip
+ Vary Accept-Encoding);
$res;
}