Add S3 support to cache tiles