Do not cache non-existent files forever (#11906)
This commit is contained in:
@@ -16,7 +16,6 @@ export function makeStaticFileCache<T>(
|
||||
const cached = cache.invalidate(() => fileMtime(filepath));
|
||||
|
||||
if (cached === null) {
|
||||
cache.forever();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user