Skip to content

Commit 80d1578

Browse files
Merge pull request #264 from SixLabors/js/retry-shortcircuit-fix
Fix infinite loop on cache file read error.
2 parents 607c6a9 + 7062618 commit 80d1578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ private async Task SendResponseAsync(
591591
// This can happen if the cached image has been physically deleted but the item is still in the LRU cache.
592592
// We'll retry running the request again in it's entirety. This ensures any changes to the source are tracked also.
593593
CacheResolverLru.TryRemove(key);
594-
await this.Invoke(httpContext);
594+
await this.Invoke(httpContext, true);
595595
return;
596596
}
597597

0 commit comments

Comments
 (0)