When using the search endpoint, I am getting one of a set of ETags for the same request, even if the content has not changed. This behaviour happens consistently and prevents me from caching the response as I do not always receive a 304 status.
Example: https://developers.google.com/youtube/v3/docs/search/list?apix=true&apix_params=%7B%22part%22%3A%5B%22snippet%22%5D%2C%22maxResults%22%3A1%2C%22order%22%3A%22viewCount%22%2C%22q%22%3A%22skateboarding%20dog%22%2C%22type%22%3A%5B%22video%22%5D%2C%22videoDefinition%22%3A%22high%22%7D
This is taken from YouTube's own documentation but limited to one search result.
The response includes a random one of two ETags, these being:
"etag": "-729CMjUYIG2kMmgCBFB77g7ibc"
or
"etag": "P9FEgO5WTt8njOwQgoPMkE8hZdI",
The rest of the data, including the etag of the item in the items array is unchanged.
etag
items
2.1m questions
2.1m answers
60 comments
57.0k users