trafficserver icon indicating copy to clipboard operation
trafficserver copied to clipboard

ats has problems handling if-none-match requests for compressed objects

Open esmq2092 opened this issue 2 years ago • 1 comments

When using the compress plugin, ats appends the “-df” suffix to the Etag for the generated compressed object.

However, when ats responds to the if-none-match conditional request on the compressed object, it always uses the original Etag(without "-df" suffix), so it cannot return 304 properly.

image

currently i use lua plugin to get a workaround.

local c_req_hdr = ts.client_request.header['If-None-Match'] ts.client_request.header['If-None-Match'] = string.gsub(c_req_hdr, "-df", "")

esmq2092 avatar Mar 06 '23 03:03 esmq2092

This issue has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community.

github-actions[bot] avatar Mar 13 '24 01:03 github-actions[bot]