By yaniszaf
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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.