Commit 8cb57fb
committed
fix(@angular/ssr): avoid caching non-SSG page lookups
Only cache CommonEngine SSG lookup results after the target file is
confirmed to be a prerendered SSG page.
Missing pages and static files without the SSG marker can be derived from
request URLs, so retaining those negative results allows attacker-controlled
paths to grow the process cache without bound.1 parent 5875b60 commit 8cb57fb
1 file changed
Lines changed: 3 additions & 3 deletions
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | 170 | | |
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
178 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
0 commit comments