Merge pull request #5039 from sbwalker/dev
improve asset caching help text
This commit is contained in:
commit
65b55a76f2
|
@ -56,7 +56,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-1 align-items-center">
|
<div class="row mb-1 align-items-center">
|
||||||
<Label Class="col-sm-3" For="cachecontrol" HelpText="Optionally provide a Cache-Control directive for this folder. For example 'public, max-age=604800' indicates that files in this folder should be cached for 1 week." ResourceKey="CacheControl">Caching: </Label>
|
<Label Class="col-sm-3" For="cachecontrol" HelpText="Optionally provide a Cache-Control directive for this folder. For example 'public, max-age=60' indicates that files in this folder should be cached for 60 seconds. Please note that when caching is enabled, changes to files will not be immediately reflected in the UI." ResourceKey="CacheControl">Caching: </Label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input id="cachecontrol" class="form-control" @bind="@_cachecontrol" maxlength="50" />
|
<input id="cachecontrol" class="form-control" @bind="@_cachecontrol" maxlength="50" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -133,7 +133,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-1 align-items-center">
|
<div class="row mb-1 align-items-center">
|
||||||
<Label Class="col-sm-3" For="cachecontrol" HelpText="Provide a Cache-Control directive for static assets. For example 'public, max-age=604800' indicates that static assets should be cached for 1 week. A blank value indicates no caching." ResourceKey="CacheControl">Static Asset Caching: </Label>
|
<Label Class="col-sm-3" For="cachecontrol" HelpText="Provide a Cache-Control directive for static assets. For example 'public, max-age=60' indicates that static assets should be cached for 60 seconds. A blank value indicates caching is not enabled." ResourceKey="CacheControl">Static Asset Caching: </Label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
<input id="cachecontrol" class="form-control" @bind="@_cachecontrol" />
|
<input id="cachecontrol" class="form-control" @bind="@_cachecontrol" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -202,6 +202,6 @@
|
||||||
<value>Caching:</value>
|
<value>Caching:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CacheControl.HelpText" xml:space="preserve">
|
<data name="CacheControl.HelpText" xml:space="preserve">
|
||||||
<value>Optionally provide a Cache-Control directive for this folder. For example 'public, max-age=604800' indicates that files in this folder should be cached for 1 week.</value>
|
<value>Optionally provide a Cache-Control directive for this folder. For example 'public, max-age=60' indicates that files in this folder should be cached for 60 seconds. Please note that when caching is enabled, changes to files will not be immediately reflected in the UI.</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -304,6 +304,6 @@
|
||||||
<value>Static Asset Caching:</value>
|
<value>Static Asset Caching:</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="CacheControl.HelpText" xml:space="preserve">
|
<data name="CacheControl.HelpText" xml:space="preserve">
|
||||||
<value>Provide a Cache-Control directive for static assets. For example 'public, max-age=604800' indicates that static assets should be cached for 1 week. A blank value indicates no caching.</value>
|
<value>Provide a Cache-Control directive for static assets. For example 'public, max-age=60' indicates that static assets should be cached for 60 seconds. A blank value indicates caching is not enabled.</value>
|
||||||
</data>
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -53,7 +53,7 @@ namespace Oqtane.Controllers
|
||||||
systeminfo.Add("Logging:LogLevel:Default", _configManager.GetSetting("Logging:LogLevel:Default", "Information"));
|
systeminfo.Add("Logging:LogLevel:Default", _configManager.GetSetting("Logging:LogLevel:Default", "Information"));
|
||||||
systeminfo.Add("Logging:LogLevel:Notify", _configManager.GetSetting("Logging:LogLevel:Notify", "Error"));
|
systeminfo.Add("Logging:LogLevel:Notify", _configManager.GetSetting("Logging:LogLevel:Notify", "Error"));
|
||||||
systeminfo.Add("UseSwagger", _configManager.GetSetting("UseSwagger", "true"));
|
systeminfo.Add("UseSwagger", _configManager.GetSetting("UseSwagger", "true"));
|
||||||
systeminfo.Add("CacheControl", _configManager.GetSetting("CacheControl", "public, max-age=604800"));
|
systeminfo.Add("CacheControl", _configManager.GetSetting("CacheControl", ""));
|
||||||
systeminfo.Add("PackageRegistryUrl", _configManager.GetSetting("PackageRegistryUrl", Constants.PackageRegistryUrl));
|
systeminfo.Add("PackageRegistryUrl", _configManager.GetSetting("PackageRegistryUrl", Constants.PackageRegistryUrl));
|
||||||
systeminfo.Add("PackageRegistryEmail", _configManager.GetSetting("PackageRegistryEmail", ""));
|
systeminfo.Add("PackageRegistryEmail", _configManager.GetSetting("PackageRegistryEmail", ""));
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user