How to disable browser cache in ASP.NET core rc2?
<p>I tried this Middleware but the browser still saving files.</p>

<p>I want user will always get the last version of js and css files.</p>

<pre><code>public void Configure(IApplicationBuilder app)
{
    app.UseSession();
    app.UseDefaultFiles();
    app.UseStaticFiles(new StaticFileOptions
    {
        OnPrepareResponse = context =&gt;
            context.Context.Response.Headers.Add("Cache-Control", "no-cache")
    });
}
</code></pre>