Anybody here has an nice strategy to serve compressed Files with zopfli instead of gzip?
My Idea is to have something like an cronjob or deployment-hook.
If files are uploaded to the Webspace, the server will generate zip-files from content like *.html, *.css *.js *.jpg *.png.
If in Nginx the directive: gzip_static on; was set, it should serve the compressed (zipped) files instead of the uncompressed by default.
What do you think is the best way to automate those steps?
Hi, sure, upload zipped files to that platform perhaps if you looking for some more complicated things - you could ask directly zopfli devs - dont get me wrong but this issue have nothing to do with virtualmin be it on ubuntu or debian or centos not even with apache. Or perhaps write bash script which you will run every hour or even every 10 minutes to produce the results - regardless apache or nginx…
its trivial and results can be found on google as well… once again, nothing to do with virtualmin.