added cache-control support + tests