title: Should I cache in App or just put Varnish in front of the web server?
body: <p>I have a basic web app that given a url, hits a database, does some maths and returns some html. The result is a bit heavy to calculate but the results can be cached for sometime.</p>
  
  <p>Is there any reason to add caching to my web application when I could just put a cache like <a href="https://www.varnish-cache.org/" rel="nofollow">Varnish</a> in front of the web server?</p>