According to r1.2+ YAML
maxAge=0 means a fresh calculation is requested by the client. If the system is not able to provide the fresh location, an error 422 with code LOCATION_VERIFICATION.UNABLE_TO_FULFILL_MAX_AGE is sent back.
maxAge=0 was implemented to address an issue as described in Issue #184:
Since 'maxAge' has a minimum value of 60 secs, using 'maxAge' is not a good way for a client to ask for such "real time" location verification
Since maxAge=0 was implemented, there is no way to ensure a fresh record with 'maxAge=1,5,10,100,etc'
Requests that include maxAge=1,5,10,100,etc will show an incorrect lastLocationTime making maxAge=1,5,10,100,etc useless.
minimum: 60 was removed since r1.2+ YAML
Since minimum: 60 is removed then it would appear that maxAge=0 is no longer needed.
If maxAge=0 is no longer required/useful because minimum: 60 is removed then:
maxAge=0 should be removed from the spec.
If maxAge=0 still has a valid use case, to ensure 'real-time':
- An additional request parameter should be added -
nocache or similar - so that maxAge=1,5,10,100,etc & lastLocationTime can become usable again.
According to r1.2+ YAML
maxAge=0means a fresh calculation is requested by the client. If the system is not able to provide the fresh location, an error 422 with code LOCATION_VERIFICATION.UNABLE_TO_FULFILL_MAX_AGE is sent back.maxAge=0was implemented to address an issue as described in Issue #184:Since 'maxAge' has a minimum value of 60 secs, using 'maxAge' is not a good way for a client to ask for such "real time" location verification
Since
maxAge=0was implemented, there is no way to ensure a fresh record with 'maxAge=1,5,10,100,etc'Requests that include
maxAge=1,5,10,100,etcwill show an incorrect lastLocationTime makingmaxAge=1,5,10,100,etcuseless.minimum: 60was removed since r1.2+ YAMLSince
minimum: 60is removed then it would appear thatmaxAge=0is no longer needed.If
maxAge=0is no longer required/useful becauseminimum: 60is removed then:maxAge=0should be removed from the spec.If
maxAge=0still has a valid use case, to ensure 'real-time':nocacheor similar - so thatmaxAge=1,5,10,100,etc& lastLocationTime can become usable again.