DescriptionReduce unneeded policy fetches by detecting expired invalidations.
User policy fetches currently occur whenever a user with policy signs into Chrome. If the policy was changed while the user was offline, the new policy is received at that time. However, the invalidation service will still send a notification that the policy was updated, possibly causing Chrome to fetch the policy again needlessly (depending on the initial policy fetch time vs the invalidation delivery time).
For versioned invalidations, we can solve this problem by comparing the version, which is a timestamp, to the timestamp of the current policy. If the invalidation was created sufficiently long before the policy was fetched, we can ignore it assuming that we already have the update.
For unknown version invalidations, we did some investigation on the server side indicating that most of these are due to users that have never had a policy change, so the invalidation server determines that the policy version is unknown. We will ignore unknown version invalidations if the policy has been fetched within the past 30 seconds.
BUG=355884
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262782
Patch Set 1 #
Total comments: 2
Patch Set 2 : Incorporate feedback from Ilya #Patch Set 3 : Fix CloudPolicyTest.InvalidatePolicy #
Total comments: 4
Patch Set 4 : Incorporate feedback from Joao #Patch Set 5 : rebase #
Messages
Total messages: 17 (0 generated)
|