0VPS Tweaks to improve web performance

Whilst I haven’t writ­ten many new art­icles recently I have spent con­sid­er­able time updat­ing and revis­ing the behind-the-scenes side of things, namely vari­ous secur­ity (TLS) set­tings on my VPS that hosts sev­er­al sites includ­ing this one.  Anoth­er thing I have also worked to enhance recently is to improve my use of gzip, and a new format called brotli

Briefly, gzip (and brotli) can be used to com­press resources before they are sent to the browser, which reduces the amount of data sent, and hence should mean a site loads faster.  The down­side is that com­press­ing resources takes time, which could out­weigh the gains from the smal­ler sizes.  The ideal solu­tion is to have resources com­pressed in advance, rather than com­pressed by the http serv­er in real­time.  Most of my web­sites use word­press which con­tains lots of files in plu­gins, themes etc, so going through all of these and manu­ally com­press­ing them everytime there is an update would be imprac­tic­al.  The answer is to use a script which mon­it­ors the sys­tem for file changes, and cre­ates com­pressed files as needed.  Below is the script I have recently writ­ten to do exactly this.

Think we've missed something? Let us know by commenting below. If you would like to subscribe please use the subscribe link on the menu at the top right. You can also share this with your friends by using the social links below. Cheers.

Leave a Reply