Fix smidge bundles not always invalidated between backoffice versions. (#11700)
* Introduced new smidge CacheBuster with sensible defaults. * Bring back reset functionality in SmidgeRuntimeMinifier * Clearer obsolete messaging.
This commit is contained in:
24
src/Umbraco.Core/Configuration/EntryAssemblyMetadata.cs
Normal file
24
src/Umbraco.Core/Configuration/EntryAssemblyMetadata.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Reflection;
|
||||
|
||||
namespace Umbraco.Cms.Core.Configuration
|
||||
{
|
||||
internal class EntryAssemblyMetadata : IEntryAssemblyMetadata
|
||||
{
|
||||
public EntryAssemblyMetadata()
|
||||
{
|
||||
var entryAssembly = Assembly.GetEntryAssembly();
|
||||
|
||||
Name = entryAssembly
|
||||
?.GetName()
|
||||
?.Name ?? string.Empty;
|
||||
|
||||
InformationalVersion = entryAssembly
|
||||
?.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
|
||||
?.InformationalVersion ?? string.Empty;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
|
||||
public string InformationalVersion { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user