Avoid hitting the database on every cross-origin request by caching published custom domain checks for five minutes.