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

fixes #1783 rest ttl issue