Gets in-memory runtime minifiy cache working, ensures no files can be accessed at the root, adds config to enable in-memory and configure a cache buster including a timestamp cache buster.

This commit is contained in:
Shannon
2021-03-17 17:44:52 +11:00
parent 2d14d0bd4a
commit eba659b9ee
16 changed files with 266 additions and 137 deletions

View File

@@ -0,0 +1,9 @@
namespace Umbraco.Cms.Core.Configuration.Models
{
public enum RuntimeMinificationCacheBuster
{
Version,
AppDomain,
Timestamp
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Umbraco.Cms.Core.Configuration.Models
{
public class RuntimeMinificationSettings
{
public bool UseInMemoryCache { get; set; } = false;
/// <summary>
/// The cache buster type to use
/// </summary>
public RuntimeMinificationCacheBuster CacheBuster { get; set; } = RuntimeMinificationCacheBuster.Version;
}
}