Skip to content

Commit 0b8f28f

Browse files
[DURACOM-344] name refactor
1 parent 6ff8478 commit 0b8f28f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ export function app() {
208208

209209
/**
210210
* Default sending all incoming requests to ngApp() function, after first checking for a cached
211-
* copy of the page (see cacheCheck())
211+
* copy of the page (see cacheAndErrorStatusCheck())
212212
*/
213-
router.get('*', cacheCheck, ngApp);
213+
router.get('*', cacheAndErrorStatusCheck, ngApp);
214214

215215
server.use(environment.ui.nameSpace, router);
216216

@@ -374,7 +374,7 @@ function anonymousCacheEnabled(): boolean {
374374
* Check if the currently requested page is in our server-side, in-memory cache.
375375
* Caching is ONLY done for SSR requests. Pages are cached base on their path (e.g. /home or /search?query=test)
376376
*/
377-
function cacheCheck(req, res, next) {
377+
function cacheAndErrorStatusCheck(req, res, next) {
378378
// Cached copy of page (if found)
379379
let cachedCopy;
380380

0 commit comments

Comments
 (0)