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:
@@ -0,0 +1,9 @@
|
||||
namespace Umbraco.Cms.Core.Configuration.Models
|
||||
{
|
||||
public enum RuntimeMinificationCacheBuster
|
||||
{
|
||||
Version,
|
||||
AppDomain,
|
||||
Timestamp
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user