Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Core cache: lock FOUND to USABLE#552

Merged
cceckman-at-fastly merged 3 commits intomainfrom
cceckman/simple
Nov 10, 2025
Merged

Core cache: lock FOUND to USABLE#552
cceckman-at-fastly merged 3 commits intomainfrom
cceckman/simple

Conversation

@cceckman-at-fastly
Copy link
Contributor

The Compute platform, at the moment, only returns FOUND if within the USABLE period (in HTTP semantics, "fresh" or "stale-while-revalidate"). Unfortunately, SDKs rely on this property, and check FOUND or USABLE variously; sometimes (e.g. in Rust), this results in a FOUND-but-not-USABLE result being returned.

We can fix SDKs going forward, but not existing usage. Match Compute's behavior by locking FOUND to USABLE. If we want to return expired results, we'll need more / other bits.

Also add tests that exercise this behavior. (Really they're testing the Rust SDK's handling of this behavior, but, better than not having it.)

The Compute platform, at the moment, only returns FOUND if within the
USABLE period (in HTTP semantics, "fresh" or "stale-while-revalidate").
Unfortunately, SDKs rely on this property, and check FOUND or USABLE
variously; sometimes (e.g. in Rust), this results in a
`FOUND`-but-not-`USABLE` result being returned.

We can fix SDKs going forward, but not existing usage. Match Compute's
behavior by locking `FOUND` to `USABLE`. If we want to return expired
results, we'll need more / other bits.
Copy link

@amsantavicca amsantavicca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🥇

@cceckman-at-fastly cceckman-at-fastly merged commit 328af2e into main Nov 10, 2025
13 checks passed
@cceckman-at-fastly cceckman-at-fastly deleted the cceckman/simple branch November 10, 2025 18:07
kailan added a commit that referenced this pull request Nov 11, 2025
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

Comments