Skip to content

Commit

Permalink
Bug fix: async cache protocol handler incorrectly updates the actual …
Browse files Browse the repository at this point in the history
…cache entry in the cache execution context upon cache entry re-validation
  • Loading branch information
ok2c committed Oct 14, 2024
1 parent 8156372 commit cc69017
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ void triggerUpdatedCacheEntryResponse(final HttpResponse backendResponse, final
public void completed(final CacheHit updated) {
try {
final SimpleHttpResponse cacheResponse = generateCachedResponse(request, updated.entry, responseDate);
context.setCacheEntry(hit.entry);
context.setCacheEntry(updated.entry);
triggerResponse(cacheResponse, scope, asyncExecCallback);
} catch (final ResourceIOException ex) {
asyncExecCallback.failed(ex);
Expand Down

0 comments on commit cc69017

Please sign in to comment.