[GH-ISSUE #6] ETag #2

Closed
opened 2026-02-27 20:22:32 +03:00 by kerem · 2 comments
Owner

Originally created by @DomWilliams0 on GitHub (May 16, 2018).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/6

A feature that would be handy would be the support of ETags, as detailed in Spotify's docs:

Conditional Requests

Most API responses contain appropriate cache-control headers set to assist in client-side caching:

  • If you have cached a response, do not request it again until the response has expired.
  • If the response contains an ETag, set the If-None-Match request header to the ETag value.
  • If the response has not changed, the Spotify service responds quickly with 304 Not Modified status, meaning that your cached version is still good and your application should use it.

I'm happy to work on this and submit a pull request, maybe as an optional --feature?

Originally created by @DomWilliams0 on GitHub (May 16, 2018). Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/6 A feature that would be handy would be the support of ETags, as detailed in Spotify's docs: > Conditional Requests > > Most API responses contain appropriate cache-control headers set to assist in client-side caching: > > - If you have cached a response, do not request it again until the response has expired. > - If the response contains an ETag, set the If-None-Match request header to the ETag value. > - If the response has not changed, the Spotify service responds quickly with 304 Not Modified status, meaning that your cached version is still good and your application should use it. I'm happy to work on this and submit a pull request, maybe as an optional --feature?
kerem 2026-02-27 20:22:32 +03:00
  • closed this issue
  • added the
    Stale
    label
Author
Owner

@ramsayleung commented on GitHub (May 16, 2018):

I do appreciate it if you are willing to work on this feature, because I don't have enough time to polish this library.And I have send invitation to add you as Collaborator :)

<!-- gh-comment-id:389488451 --> @ramsayleung commented on GitHub (May 16, 2018): I do appreciate it if you are willing to work on this feature, because I don't have enough time to polish this library.And I have send invitation to add you as Collaborator :)
Author
Owner

@github-actions[bot] commented on GitHub (Jul 5, 2023):

Message to comment on stale issues. If none provided, will not mark issues stale

<!-- gh-comment-id:1620939772 --> @github-actions[bot] commented on GitHub (Jul 5, 2023): Message to comment on stale issues. If none provided, will not mark issues stale
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rspotify#2
No description provided.