Skip to content

Commit 34474bd

Browse files
committed
Cache /types/js for !DebugMode by default
1 parent 5052a0c commit 34474bd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/ServiceStack/NativeTypes/NativeTypesService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ string Generate()
255255
return typeScript;
256256
}
257257

258-
if (request.Cache == true && !HostContext.DebugMode)
258+
if (request.Cache != false && !HostContext.DebugMode)
259259
return Request.ToOptimizedResultUsingCache(LocalCache, cacheKey:Request.AbsoluteUri, Generate);
260260

261261
return Generate();

src/ServiceStack/modules/admin-ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h1 class="text-2xl font-semibold text-gray-900">{{store.link.label}}</h1>
5757
</div>
5858
<script src="../js/require.js?vfx=hash"></script>
5959
<script src="../js/servicestack-client.js?vfx=hash"></script>
60-
<script src="../types/js?cache=true&vfx=hash"></script>
60+
<script src="../types/js?vfx=hash"></script>
6161
<script>
6262
Object.assign(window, exports) //import
6363
/*shared/js:core */

src/ServiceStack/modules/ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
</div>
5757
<script src="../js/require.js?vfx=hash"></script>
5858
<script src="../js/servicestack-client.js?vfx=hash"></script>
59-
<script src="../types/js?cache=true&vfx=hash"></script>
59+
<script src="../types/js?vfx=hash"></script>
6060
<script>
6161
Object.assign(window, exports)
6262
/*shared/js:core */

tests/NorthwindAuto/admin-ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1 class="text-2xl font-semibold text-gray-900">{{store.link.label}}</h1>
6363

6464
<script src="../js/require.js?vfx=hash"></script>
6565
<script src="../js/servicestack-client.js?vfx=hash"></script>
66-
<script src="../types/js?cache=true&vfx=hash"></script>
66+
<script src="../types/js?vfx=hash"></script>
6767
<script>
6868
Object.assign(window, exports) //import
6969

tests/NorthwindAuto/ui/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363
<script src="../js/require.js?vfx=hash"></script>
6464
<script src="../js/servicestack-client.js?vfx=hash"></script>
65-
<script src="../types/js?cache=true&vfx=hash"></script>
65+
<script src="../types/js?vfx=hash"></script>
6666
<script>
6767
Object.assign(window, exports)
6868

0 commit comments

Comments
 (0)