Express.js cache request results with dynamic data
<p>Is it possible to handle cache for dynamic data? I know we can set cache in express using the following:</p>

<pre><code>res.header('Cache-Control', 'public, max-age=31557600')
</code></pre>

<p>But is it possible to set the cache the first a user access a route. For example <code>/latest-articles</code> displays the latest articles and this data is cached. So whenever a new user comes in they get the cached data within a few ms. But if someone adds a new article the cache is reset so when a user goes to <code>/latest-articles</code> or even refreshes the page they get the newly cached data.</p>

<p>I am guessing for this 'Server-Side' caching would be the right option. does anyone know how this can be implemented within Express.js/Node.js?</p>