Skip to content

Improve HEAD request caching with GET fallback#728

Merged
sdogruyol merged 1 commit intomasterfrom
optimize-route-handler-2
Nov 4, 2025
Merged

Improve HEAD request caching with GET fallback#728
sdogruyol merged 1 commit intomasterfrom
optimize-route-handler-2

Conversation

@sdogruyol
Copy link
Member

@sdogruyol sdogruyol commented Nov 4, 2025

Summary

Refactors the lookup_route method in RouteHandler to improve code clarity and ensure proper caching of HEAD requests that fallback to GET handlers.

Changes

  • Separated GET route lookup into a distinct variable (get_route) for better readability
  • Clarified the caching logic for HEAD->GET fallback scenarios

…ze path construction using string interpolation for improved performance.
@sdogruyol sdogruyol force-pushed the optimize-route-handler-2 branch from 5cf40e0 to a193e10 Compare November 4, 2025 11:29
@sdogruyol sdogruyol merged commit 1643905 into master Nov 4, 2025
15 checks passed
@straight-shoota straight-shoota deleted the optimize-route-handler-2 branch November 4, 2025 11:47
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.

1 participant