https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.403-windows-x64-installer
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.BundlerMinifier
https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ImageSprites
http://luci.criosweb.ro/riot/
services.AddMemoryCache();
Microsoft.Extensions.Caching.Memory.IMemoryCache memoryCache
var cacheEntryOptions = new MemoryCacheEntryOptions()
.SetAbsoluteExpiration(DateTime.Now.AddMinutes(2));
_memoryCache.Set(cacheKey, retorno, cacheEntryOptions);
app.UseResponseCompression();
services.Configure<GzipCompressionProviderOptions>(
o => o.Level = System.IO.Compression.CompressionLevel.Fastest);
services.AddResponseCompression(o =>
{
o.Providers.Add<GzipCompressionProvider>();
});
app.UseStaticFiles(new StaticFileOptions
{
OnPrepareResponse = ctx =>
{
const int durationInSeconds = 60 * 60 * 24;
ctx.Context.Response.Headers[HeaderNames.CacheControl] =
"public,max-age=" + durationInSeconds;
}
});