adds headers config option for S3 cache