apache / apache/trafficserver

Multiple Origin Requests Due to Cache Write Lock Failure

Open
#12,166 3 comments 0 reactions 0 assignees View on GitHub
Cache HTTP Support
Dominant language
C++
Stars
2k
Forks
874
Avg merge
6d 15h
Merged PRs (30d)
46

Description

Description:
When multiple concurrent requests are made for the same expired cached resource, and the origin content hasn't been modified:

1. Current behavior:
- The handle_cache_write_lock function removes the IMS (If-Modified-Since) header
- This results in multiple origin requests for the same resource
- These requests are logged with TCP_REFRESH_MISS status

Question:
For this specific scenario where concurrent requests are made for an expired cached resource and the origin content hasn't been modified, can we preserve the IMS headers in handle_cache_write_lock? This would potentially reduce unnecessary origin requests.

Version: Apache Traffic Server 9.2.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.