Skip to content

Commit f994389

Browse files
author
abhinav
committed
change clientSideRenderer
1 parent ded497a commit f994389

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,7 @@ function clientSideRender(req, res) {
329329
html = html.replace(new RegExp(REST_BASE_URL, 'g'), environment.rest.baseUrl);
330330
}
331331

332-
res.send(indexHtml, {
333-
headers: {
334-
'Cache-Control': 'no-cache, no-store',
335-
},
336-
});
332+
res.set('Cache-Control', 'no-cache, no-store').send(html);
337333
}
338334

339335

0 commit comments

Comments
 (0)