File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 11@using System .Globalization
2+ @using Abp .AspNetCore .Mvc .Caching
3+ @using Abp .CachedUniqueKeys
24@inject AbpCompanyName .AbpProjectName .Timing .AppTimes AppTimes
3-
5+ @inject ICachedUniqueKeyPerUser CachedUniqueKeyPerUser
6+ @inject IGetScriptsResponsePerUserConfiguration GetScriptsResponsePerUserConfiguration
47
58<environment names =" Development" >
69 @* core scripts start*@
8184
8285<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
8386<script src =" ~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type =" text/javascript" ></script >
84- <script src =" ~/AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type =" text/javascript" ></script >
87+
88+ @if (GetScriptsResponsePerUserConfiguration .IsEnabled )
89+ {
90+ <script src =" @(ApplicationPath)AbpScripts/GetScripts?v=@(await CachedUniqueKeyPerUser.GetKeyAsync(GetScriptsResponsePerUserCache.CacheName))" type =" text/javascript" ></script >
91+ }
92+ else
93+ {
94+ <script src =" @(ApplicationPath)AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type =" text/javascript" ></script >
95+ }
Original file line number Diff line number Diff line change 11@using System .Globalization
2+ @using Abp .AspNetCore .Mvc .Caching
3+ @using Abp .CachedUniqueKeys
24@inject AbpCompanyName .AbpProjectName .Timing .AppTimes AppTimes
5+ @inject ICachedUniqueKeyPerUser CachedUniqueKeyPerUser
6+ @inject IGetScriptsResponsePerUserConfiguration GetScriptsResponsePerUserConfiguration
37
48<environment names =" Development" >
59 @* core scripts start*@
9296
9397<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
9498<script src =" ~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type =" text/javascript" ></script >
95- <script src =" ~/AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type =" text/javascript" ></script >
99+
100+ @if (GetScriptsResponsePerUserConfiguration .IsEnabled )
101+ {
102+ <script src =" @(ApplicationPath)AbpScripts/GetScripts?v=@(await CachedUniqueKeyPerUser.GetKeyAsync(GetScriptsResponsePerUserCache.CacheName))" type =" text/javascript" ></script >
103+ }
104+ else
105+ {
106+ <script src =" @(ApplicationPath)AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type =" text/javascript" ></script >
107+ }
You can’t perform that action at this time.
0 commit comments