title: Response caching in ASP.NET Core work on client side or server side?
body: <p>I'm new to asp.net core sorry if my question sounds dumb.
  We can use response caching by</p>
  <pre><code>//ConfigureServices
  services.AddResponseCaching();
  
  //Configure
  app.UseResponseCaching();
  </code></pre>
  <p>But isn't that the purpose of response cache is to add a <code>Cache-Control </code>header in the response so that clients(browser) will cache this response locally. So why not just manually add the header to the <code>httpcontext</code> as
  <code>context.Response.Headers[&quot;Cache-Control&quot;] = &quot;public, max-age=120&quot;;</code>
  why all the fuss to use a dedicated response caching middleware?</p>