We're about to set up a cache and reverse proxy for our site, and we're deciding whether to use Varnish or Nginx. We have complex cache-busting requirements, and we effectively require surrogate key (or tag-based) cache invalidation.
Varnish offers Hashtwo with this functionality. Does Nginx offer this in any form?
Nginx provides only the Purge method for invalidating cache which is only one of the four methods Varnish offers and not even the best option for your scenario.
Moreover I strongly recommend Varnish over Nginx for caching web pages due to its specific nature of caching tool. Nginx could be pretty good at delivering static content, but it writes all the cached content to disk which is slower compared to Varnish storing it in memory.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With