Ok, so… I have set up a droplet here in DigitalOcean with Ubuntu 18.04 for a Ruby/Sinatra website, using Puma + Nginx + SSL (via Let’s encrypt).
Everything works fine.
However, since most (but not all) of my Sinatra-generated content is actually static - meaning: once it’s generated, it’ll most likely never change, I want to set up page caching (if that’s what it’s called) via Nginx.
Basically, if a page has already been generated (and cached), no need to go to Sinatra at all - just send the pre-generated page instantly. That’s my idea.
How would I achieve this?
Click below to sign up and get $100 of credit to try our products over 60 days!