How to cache a PHP page using Nginx

You find it slightly annoying that a completely static page like this one still causes the web server to run code? You want to shave off a few milliseconds from the page load time? Your page does not have dynamic content for your visitors? You have a static IP address at home? You are okay with slightly hackish solutions that might break spectacularly in the future?

Then this guide is for you! If not there might still be parts you can apply to your website.

You have any feedback or ideas to improve this? Contact me on Social Media or per E-Mail. You can find my other projects at