From c71d1f1dcbc86c2d736e596fa8cfab64f5f0c9f2 Mon Sep 17 00:00:00 2001 From: Maxfield Kouzel Date: Tue, 12 Nov 2024 14:27:34 -0500 Subject: [PATCH] Use Cached Endpoints This change updated the LiveAPI endpoints that search-core provides so that it provides the cached version of the endpoints. Using the cached endpoints helps improve performance. J=WAT-4442 TEST=manual Built test site with new change, saw that the cached endpoints were being used. --- src/provideEndpoints.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/provideEndpoints.ts b/src/provideEndpoints.ts index e4dd966d..e7bdaa2b 100644 --- a/src/provideEndpoints.ts +++ b/src/provideEndpoints.ts @@ -26,10 +26,10 @@ export class EndpointsFactory { getDomain() { switch (this.cloudChoice){ case CloudChoice.GLOBAL_GCP: - return `https://${this.environment}-cdn-gcp.${this.cloudRegion}.yextapis.com`; + return `https://${this.environment}-cdn-cached-gcp.${this.cloudRegion}.yextapis.com`; case CloudChoice.GLOBAL_MULTI: default: - return `https://${this.environment}-cdn.${this.cloudRegion}.yextapis.com`; + return `https://${this.environment}-cdn-cached.${this.cloudRegion}.yextapis.com`; } }