Skip to content

Do not call the backend when an only-if-cached request cannot be served from cache (RFC 9111 5.2.1.7)#853

Merged
ok2c merged 1 commit into
apache:masterfrom
hunghhdev:async-only-if-cached-miss
Jul 17, 2026
Merged

Do not call the backend when an only-if-cached request cannot be served from cache (RFC 9111 5.2.1.7)#853
ok2c merged 1 commit into
apache:masterfrom
hunghhdev:async-only-if-cached-miss

Conversation

@hunghhdev

Copy link
Copy Markdown
Contributor

AsyncCachingExec.handleCacheMiss is missing a return after generating the 504 (Gateway Timeout) for an only-if-cached request, so it falls through and calls the backend anyway. Added the missing return and a test, mirroring the classic CachingExec behavior

@ok2c
ok2c merged commit 1e18d54 into apache:master Jul 17, 2026
10 checks passed
@ok2c

ok2c commented Jul 17, 2026

Copy link
Copy Markdown
Member

Cherry-picked to 5.6.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants