Skip to content

Commit 5dc8030

Browse files
committed
use mod_brotli if available
1 parent 5f1e170 commit 5dc8030

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

install/patches/upd_dev.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
if(!defined('INSTALLER_RUN')) die('Patch update file access violation.');
4+
5+
/*
6+
Example installer patch update class. the classname must match
7+
the php and the sql patch update filename. The php patches are
8+
only executed when a corresponding sql patch exists.
9+
*/
10+
11+
class upd_dev extends installer_patch_update {
12+
13+
public function onAfterSQL() {
14+
global $inst, $conf;
15+
}
16+
}
17+
18+
?>
19+

server/conf/vhost.conf.master

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
<IfModule mod_http2.c>
5454
Protocols h2 http/1.1
5555
</IfModule>
56+
57+
<IfModule mod_brotli.c>
58+
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/json application/x-font-ttf application/vnd.ms-fontobject image/x-icon
59+
</IfModule>
5660
</tmpl_if>
5761

5862
<tmpl_if name='logging' op='==' value='anon'>

0 commit comments

Comments
 (0)