fixes #1783 rest ttl issue
Merge pull request #1785 from gurbuzali/fix-issue1783/3.x

fixes #1783 rest ttl issue