Skip to content

Feature request: Control what type of conditional request is being made #229

@netomi

Description

@netomi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions