Supporting Millions of Pretty URL Rewrites in Nginx with Lua and Redis

About a year ago, I was tasked with greatly expanding our url rewrite capabilities. Our file based, nginx rewrites were becoming a performance bottleneck and we needed to make an architectural leap that would take us to the next level of SEO wizardry. In comparison to the total number of product categories in our database, … Continue reading Supporting Millions of Pretty URL Rewrites in Nginx with Lua and Redis

Far Future Expires Headers For Ruby On Rails With Nginx

Browsers load static images from your website again and again if your web server does not send an expires header with a date far in the future. To avoid that unnecessary traffic on your servers and unnecessary load times for your users, it's a good idea to let your nginx send those expires headers. But, … Continue reading Far Future Expires Headers For Ruby On Rails With Nginx