Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add further implementation guidance around when and how to use ttl vs exp claim #107

Open
tplooker opened this issue Feb 20, 2024 · 4 comments
Assignees

Comments

@tplooker
Copy link
Collaborator

Also consider the application and usage of a mechanism like etag to allow a consuming party to determine whether their copy of a given status list is the latest.

@tplooker
Copy link
Collaborator Author

Include rationale for why we need both.

  • For example having a ttl claim and exp means the issuer of the status list doesn't need to resign it if there is no updates within the expiry window.
  • This approach also helps to spread out cache invalidation by downstream parties rather then synchronising them with an expected update time stamp.

@joelposti
Copy link

Since Status List Tokens are distributed via HTTP endpoints it might be beneficial to elaborate on how ttl and exp claims interplay with HTTP headers such as Cache-Control and Expires.

For example, if the value of ttl claim is 60 and the value of Cache-Control HTTP header is max-age=30 which of these takes the precedence? My assumption is that ttl takes precedence since its signed data.

Another example: ttl is 60 but Cache-Control HTTP header is no-store. Should the consumer cache the Status List Token or not? Issuer says yes, but whatever CDN operator says no.

@paulbastian
Copy link
Contributor

Editors Call:

  • put it under implementation considerations
  • highlight difference exp being point of time, ttl is a duration
  • include the ascii art explainer we once created

@tplooker
Copy link
Collaborator Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants