Repository navigation
fix: accept documented LiteSpeed cache-hit headers - #62
Merged
Merged
Conversation
tayfuryldz
approved these changes
Oct 2, 2026
tayfuryldz
left a comment
Owner
There was a problem hiding this comment.
I checked this against current main and ran the full maintainer gates locally: pytest, Ruff, and mypy are clean. The diff stays within the issue scope and I did not find a blocking regression.
tayfuryldz
enabled auto-merge (squash)
October 2, 2026 16:56
tayfuryldz
force-pushed
the
ymax27/litespeed-cache-hit
branch
4 times, most recently
from
October 2, 2026 17:08
ff95059 to
78119cb
Compare
Record X-LiteSpeed-Cache, X-LSADC-Cache, and X-QC-Cache, and treat only an exact hit value as shared-cache hit evidence. Co-authored-by: Cursor <cursoragent@cursor.com>
The first commit on this branch also changed out-of-band promotion. Restore that path so this change only records LiteSpeed hit headers. Co-authored-by: Cursor <cursoragent@cursor.com>
tayfuryldz
force-pushed
the
ymax27/litespeed-cache-hit
branch
from
October 2, 2026 17:10
78119cb to
413b1d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cache_indicators()recordsX-LiteSpeed-Cache,X-LSADC-Cache, andX-QC-Cachewith their exact values.shared_cache_hit_markers()accepts only an exacthittoken for those headers.miss,bypass, mixed values, and substrings such ashitterare not hit evidence.X-LiteSpeed-Cache: hit. The same sequence withmissdoes not.Scope
Fixes #40.
LiteSpeed documents
hitas served from LSCache andmissas not served from cache: https://docs.litespeedtech.com/lscache/start/The second commit on this branch removes an accidental out-of-band promotion edit so the final diff only changes cache-hit recognition.
Validation
Commands run on this branch:
Observed result: 2 passed.
ruffandmypyare not installed in this environment, so those gates were not run. The detector/evidence coverage gate was also not run here.Checklist
Made with Cursor