Amazon AJAX Javascript Link Localiser

I recently wrote about how a cache everything on this site on CloudFlare – including the HTML pages. This does not play nice with my geo-aware cache setup which I used to generate specific pages with localised links depending which country my visitor came from. To get around this problem I have written some Javascript … Continue reading “Amazon AJAX Javascript Link Localiser”

Turbocharging WordPress: Caching static HTML with CloudFlare for free

I already use CloudFlare as a CDN (content delivery network) to cache my static resources and serve them closer to the visitor. CloudFlare also automatically serves content using HTTP/2 and even allows one to use Server Push feature to push resources before the browser even has received the HTML page. The last step is to … Continue reading “Turbocharging WordPress: Caching static HTML with CloudFlare for free”

HTTP/2 Server Push with NGINX, CloudFlare and WordPress

With CloudFlare supporting HTTP/2 and Server Push, we can leverage that by using CloudFlare as a CDN even though NGINX does not support Server Push. Setup CloudFlare Login / create an account at CloudFlare.com Make sure you use CloudFlares nameservers as your primary nameservers. Your domain must resolve using CloudFlares DNS server Go to DNS … Continue reading “HTTP/2 Server Push with NGINX, CloudFlare and WordPress”

WP Product Review custom shortcode

I am preparing to write reviews on my blog and stumbled on the WP Product Review plugin for WordPress which seemed like a perfect fit. However, when I inserted the review box at the end of my posts, it was placed below my social share buttons. To place the box above my social share links I have … Continue reading “WP Product Review custom shortcode”

Prism code highlighter in WordPress without a plugin

I was looking for a lightweight code syntax highlighter for WordPress that only loaded when needed on the page. I found Prism which fitted my needs. There are a few WordPress plugins for Prism, but I felt that it was not needed and too bloated. Here is what I did Download a minified version of Prism … Continue reading “Prism code highlighter in WordPress without a plugin”

Free WordPress Jetpack monitor replacement

I am slowly moving away from Jetpack, a WordPress plugin that bundles many smaller plugins. It is too bulky and I don’t need many of the features it offers. One feature I do need is Monitor that checks if my site is up and running every 5 minutes and notifies me by email when it is … Continue reading “Free WordPress Jetpack monitor replacement”