]> lifelog.hopto.org Git - LifeLog.git/commitdiff
linked gzip compression with config setting.
authorWill Budicm <redacted>
Tue, 26 May 2020 10:53:08 +0000 (20:53 +1000)
committerWill Budicm <redacted>
Tue, 26 May 2020 10:53:08 +0000 (20:53 +1000)
htdocs/cgi-bin/main.cgi

index d1f6beda09fd9cea3446b67502c3d4f0fb9c29d9..e0aa4d3d8ec1f16c7d4a319038ea7804d540eba3 100755 (executable)
@@ -1514,7 +1514,7 @@ sub outputPage {
 
     my $enc = $cgi->http('Accept-Encoding');
         
-    if($enc =~ m/gzip/){        
+    if($enc =~ m/gzip/ && Settings->compressPage()){        
         print $cgi->header(-expires => "1s", -charset => "UTF-8", -Content_Encoding => 'gzip');
         $BUFFER = gzip($BUFFER);
     }