Support ssl and nginx caching