The documentation was inconsistent with the code. The new description for cookie-algorithm now reflects the current behavior. The following two commits are the relevant code changes to this section of docs:afa81ee4a912f313(cherry picked from commitb29a748119)