-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Feature description
The cache will use whatever method is supported depending on the presence of various header fields:
- ETag
- Last-Modified
However, I encountered a corner-case when using conditional requests with GitHub, where using ETags leads to unwanted behavior, see eclipse-csi/otterdog#201 for a summary of the problem.
It would be useful if in such cases you can control what type of information is used when sending such a conditional request, e.g. limit to the use of the Last-Modified field.
Use case
Being able to use stable conditional requests with the GitHub Rest API when using installation tokens that have to be rolled every hour.
Workarounds
There is no known workaround atm afaict, the cache will invalidate itself when a new token is being used.
Plan to implement
Tbh I am not sure if this really a useful feature or just adds complexity, it eventually should be fixed on GitHub side, but I wanted to raise and discuss this issue here as well.