Skip to content

Commit 11d8e81

Browse files
committed
Prevent caching AbpServiceProxies.
1 parent 8ffc453 commit 11d8e81

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/AbpCompanyName.AbpProjectName.WebMpa/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
</script>
5151

5252
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
53-
<script src="~/api/AbpServiceProxies/GetAll"></script>
53+
<script src="~/api/AbpServiceProxies/GetAll?v=@(Clock.Now.Ticks)"></script>
5454
<script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)" type="text/javascript"></script>
5555

5656
<!-- View specific scripts -->

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/layout/layout.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
</script>
3636

3737
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
38-
<script src="~/api/AbpServiceProxies/GetAll?type=angular"></script>
38+
<script src="~/api/AbpServiceProxies/GetAll?v=@(Clock.Now.Ticks)"></script>
39+
<script src="~/api/AbpServiceProxies/GetAll?type=angular&v=@(Clock.Now.Ticks)"></script>
3940
<script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)" type="text/javascript"></script>
4041

4142
@Scripts.Render("~/Bundles/App/Main/js")

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</script>
6666

6767
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
68-
<script src="~/api/AbpServiceProxies/GetAll"></script>
68+
<script src="~/api/AbpServiceProxies/GetAll?v=@(Clock.Now.Ticks)"></script>
6969
<script src="~/AbpScripts/GetScripts?v=@(Clock.Now.Ticks)" type="text/javascript"></script>
7070
</head>
7171
<body>

0 commit comments

Comments
 (0)