···105105106106 // Check for a cached entry as this will be faster than the store response.
107107 const cachedResponse = await cache.match(urlKey);
108108+108109 if (cachedResponse) {
109109- debugCache("Get - cached response");
110110+ debugCache("RegionalCache", `get ${key} -> cached response`);
110111111112 // Re-fetch from the store and update the regional cache in the background.
112113 // Note: this is only useful when the Cache API is not purged automatically.
···134135 const { value, lastModified } = rawEntry ?? {};
135136 if (!value || typeof lastModified !== "number") return null;
136137138138+ debugCache("RegionalCache", `get ${key} -> put to cache`);
139139+137140 // Update the locale cache after retrieving from the store.
138141 getCloudflareContext().ctx.waitUntil(
139142 this.putToCache({ key, cacheType, entry: { value, lastModified } })
···152155 cacheType?: CacheType
153156 ): Promise<void> {
154157 try {
158158+ debugCache("RegionalCache", `set ${key}`);
159159+155160 await this.store.set(key, value, cacheType);
156161157162 await this.putToCache({
···170175 }
171176172177 async delete(key: string): Promise<void> {
178178+ debugCache("RegionalCache", `delete ${key}`);
173179 try {
174180 await this.store.delete(key);
175181