Skip to content

Commit 573118f

Browse files
committed
Fix local CA in-memory caching
1 parent 147a901 commit 573118f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tls-certificates/local-ca.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ export class LocalCA {
155155
}
156156

157157
generateCertificate(domain: string) {
158-
const cachedCert = this.certDiskCache?.getCert(domain);
158+
const cachedCert = this.certDiskCache?.getCert(domain)
159+
?? this.certInMemoryCache[domain];
159160
if (cachedCert) return cachedCert;
160161

161162
if (domain.includes('_')) {

0 commit comments

Comments
 (0)