0VPS调整,以提高网络性能

虽然我没有写很多新的文章最近,我花了大量时间更新和修订的事情幕后的侧, 即各种安全 (TLS) 在我的设置 VPS 承载几个网站,包括这一项。我还努力最近提高的另一件事,是提高我使用的gzip, 并呼吁brotli新格式

简要地, gzip的 (和brotli) can be used to com­press resources before they are sent to the browser, 这减少了发送的数据的量, 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, 主题等, 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.

认为我们已经错过了什么? 让我们通过下面的评论知道. 如果您想订阅,请使用菜单上的订阅链接右上方. 您还可以通过使用下面的链接社会分享这与你的朋友. 干杯.

Leave a Reply