Honor upstream ttl when proxing

Closes #1021