It looks like that brotli is not compressing all my local static content (and I need it to compress at least all local js and css files) or that it's gzip that isn't working. And maybe there's nothing being compressed at all, because I'm getting like 8mb of page size and gzip might also be the problem, but I also believe that there's something else in my server that is making this a mess. Someone said in a forum that `mod_pagespeed` might be a problem, but when I've checked if it was installed, it isn't, at least I couldn't find the path described in the tutorial, I don't have a `modules` folder in my root folder.
I'm using these headers:
This is my `httpd-tuning.conf` content:
Whatever I check with whatever online tool, it says that brotli is not supported and that gzip is supported, but then I check one of the files directly, and it says brotli is supported.
I'm running Direct Admin on a CentOS, using the free version of Litespeed.
This is the page that I'm testing: https://lucrebem.com.br/emp/respondendo-estonia-01/
the one the tool says that gzip is enabled, but brotli is not supported. And this is the file that the tool says that brotli is supported:
https://lucrebem.com.br/wp-includes/js/wp-emoji-release.min.js
I don't know if that serves much of an info, but I've noticed that when I do changes to my htaccess, they only go into effect after I restart litespeed, so maybe there's something that's caching my server files, thus preventing me from seeing changes right away.
I'm using these headers:
compressibleTypes text/*,application/x-javascript,application/javascript,application/xml,application/json,application/ld+json,application/rdf+xml,application/rss+xml,application/schema+json,application/manifest+json,application/vnd.ms-fontobject,application/vnd.geo+json,application/x-font,application/x-font-opentype,application/x-font-otf,application/x-font-truetype,application/x-font-ttf,application/xhtml+xml,application/x-web-app-manifest+json,image/svg+xml,image/x-icon,image/vnd.microsoft.icon,image/bmp,font/eot,font/opentype,font/otf,font/ttf
This is my `httpd-tuning.conf` content:
tuning{
maxConnections 10000
maxSSLConnections 5000
connTimeout 300
maxKeepAliveReq 10000
smartKeepAlive 0
keepAliveTimeout 5
sndBufSize 0
rcvBufSize 0
gzipStaticCompressLevel 9
gzipMaxFileSize 10M
eventDispatcher best
maxCachedFileSize 4096
totalInMemCacheSize 20M
maxMMapFileSize 256K
totalMMapCacheSize 40M
useSendfile 1
fileETag 28
SSLCryptoDevice null
maxReqURLLen 8192
maxReqHeaderSize 16380
maxReqBodySize 2047M
maxDynRespHeaderSize 8192
maxDynRespSize 2047M
enableGzipCompress 1
enableBrCompress 1
enableDynGzipCompress 1
gzipCompressLevel 9
brStaticCompressLevel 11
compressibleTypes text/*,application/x-javascript,application/javascript,application/xml,application/json,application/ld+json,application/rdf+xml,application/rss+xml,application/schema+json,application/manifest+json,application/vnd.ms-fontobject,application/vnd.geo+json,application/x-font,application/x-font-opentype,application/x-font-otf,application/x-font-truetype,application/x-font-ttf,application/xhtml+xml,application/x-web-app-manifest+json,image/svg+xml,image/x-icon,image/vnd.microsoft.icon,image/bmp,font/eot,font/opentype,font/otf,font/ttf
gzipAutoUpdateStatic 1
gzipMinFileSize 300
}
Whatever I check with whatever online tool, it says that brotli is not supported and that gzip is supported, but then I check one of the files directly, and it says brotli is supported.
I'm running Direct Admin on a CentOS, using the free version of Litespeed.
This is the page that I'm testing: https://lucrebem.com.br/emp/respondendo-estonia-01/
the one the tool says that gzip is enabled, but brotli is not supported. And this is the file that the tool says that brotli is supported:
https://lucrebem.com.br/wp-includes/js/wp-emoji-release.min.js
I don't know if that serves much of an info, but I've noticed that when I do changes to my htaccess, they only go into effect after I restart litespeed, so maybe there's something that's caching my server files, thus preventing me from seeing changes right away.