Making git-reader return 206 for older expected than since values#1364
Making git-reader return 206 for older expected than since values#1364alexcottner wants to merge 2 commits into
Conversation
I can't recall the reason why we did use 206 in the first place. Wasn't it because of GCP caching limitation on 400?
In what sense the client expects 206? Couldn't we switch v1 to 400 instead? If we really have no choice, then yeah let's do this :) |
|
Added a comment to the jira ticket (link) but the evidence seems pretty strong here.
|
I think the GCP limitation was the big reason before. But I don't think we were returning 400 responses for long enough to encounter this secondary problem.
I think the main thing here is if we return a 206, the clients don't do anything and keep working with their current data. And will catch up on the next sync. But if we return a 400, the etag value is cleared and they could go backwards. |


Git-reader should return a 206 instead of a 400 when clients request data with an older
_expectedvalue than the_sincevalue.This will mirror the existing v1 behavior, which is what clients are expecting.
Client-side code (link) in
remote-settings.sys.mjsis expecting a 400 to mean the etag should be cleared so it can resync. But this is a behavior change from v1.