Pre-compressed files

#1
I'm testing OpenLiteSpeed on one of my servers, as a potential replacement for Nginx.

One of the things I currently do is pre-compress all CSS and JS files as part of the build process, so the web server doesn't have to do it dynamically. This means that for example, I have files like this:

example.js
example.js.gz
example.js.br


Does Litespeed support serving these files directly rather than compressing the source file itself? On Nginx I use `gzip_static on` and `brotli_static on`
 

mistwang

LiteSpeed Staff
#2
It could be done, but not necessary.
OLS can save compressed version into its cache, and automatically update the cache if original file changes.
It works better than manually create the compression cache for static file.
It is fully automatic. :)
 
Top