Apache – enabling brotli compression with gzip/deflate fallback

Edit: October 2022 – I’ve also added tutorial for configuring nginx with brotli compression with gzip fallback (handling both statically compressed files and dynamic content): Brotli is a relatively new generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding, and 2nd order context modeling. … Read more

Php convert long array syntax to short

Php introduced new short array syntax ‘[]’ back with PHP version 5.4. Practically we may still work on some older projects where we may encounter those long formatted array() syntax. And also – there is nothing wrong with using a long syntax, it’s not like it’s deprecated or anything. Some of us do however strongly … Read more

Using w3tc (W3 Total Cache) cache with wordpress bedrock

As anyone who ever seriously developed with wordpress – it is not the platform that is necessarily known for solid software architecture and modern development practices. WordPress does absolutely excel in other areas though – such as UI and ease of use. It’s end-user-friendliness (but let’s not mistake end-users with software developers) is unparalleled, which … Read more

Haproxy http/https on single port

I do a lot of web development and prefer spinning up my development app/site/enviroment on one of my home server(s) within the confines of my homenet/homelab (without ever exposing site/app to the internet). It works just dandy for http, however – im not satisfied with just http (even if this is a dev environment) – … Read more