about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/WwwStatic.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwStatic.pm b/lib/PublicInbox/WwwStatic.pm
index 0c534b46..3c933156 100644
--- a/lib/PublicInbox/WwwStatic.pm
+++ b/lib/PublicInbox/WwwStatic.pm
@@ -117,7 +117,9 @@ sub try_gzip_static ($$$$) {
         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;
 }