Skip to content

Commit ba5b06e

Browse files
committed
fixup! fix(@angular/ssr): avoid caching non-SSG page lookups
1 parent 8cb57fb commit ba5b06e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/angular/ssr/node/src/common-engine/common-engine.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,11 @@ export class CommonEngine {
175175
const isSSG = SSG_MARKER_REGEXP.test(content);
176176
if (isSSG) {
177177
this.pageIsSSG.set(pagePath, true);
178+
179+
return content;
178180
}
179181

180-
return isSSG ? content : undefined;
182+
return undefined;
181183
}
182184

183185
private async renderApplication(opts: CommonEngineRenderOptions): Promise<string> {

0 commit comments

Comments
 (0)