Open Benjamin-Loison opened 2 years ago
Will have to change most of my Stack Overflow answers once this issue will be closed.
Note that we might want the instance to be memory free, especially that the official one is used by many different persons that we can possibly assume not to useless repetitive request (looking for data change where they can't be any), so possibly assuming they have a local cache in some way.
https://stackoverflow.com/q/36490875 only seems to treat static files.
Official documentation: https://developers.google.com/youtube/v3/getting-started#etags
As currently showing
'etag' => 'NotImplemented',
initem
to look compatible with YouTube Data API v3 JSON parser but with such a constant value it isn't as far as I remember, so we should remove it until it is implemented.Does the YouTube UI support ETags? I would say no with all tracker parameters, however using a well-designed filter function for each endpoint we can focus on changes of the actual data. It seems that the YouTube operational API instance can't use ETags or similar mechanism of the YouTube UI endpoints don't too, but the instance can propose such a mechanism with the end users.
A remaining question is does in theory we have:
Or
As in the second case, the instance can't distinguish both cases. It seems that we can avoid caching in the first case, by just using a hash function for instance.
+3