Skip to content

Commit 1fe9193

Browse files
Adds troubleshooting section for cache keys (#26900)
1 parent 32081ec commit 1fe9193

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/cache/how-to/cache-keys.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ Cache keys options availability varies according to your plan.
154154

155155
<FeatureTable id="cache.cache_key" />
156156

157+
## Troubleshooting
158+
159+
You can use [Cloudflare Trace](/rules/trace-request/) to find which Cache Key settings were applied to your request. When you send a request through the Trace tool, if the request was served from cache, it will show a cache hit in the **Cache Paremeters** section. Then select **View paremeter detail** to see exactly which Cache Key properties were used.
160+
157161
## Limitations
158162

159163
The [Prefetch](/speed/optimization/content/prefetch-urls/) feature is not compatible with the [Custom Cache Keys](/cache/how-to/cache-rules/examples/custom-cache-key/). With [Cache Rules](/cache/how-to/cache-rules/), the custom cache key is used to cache all assets. However, Prefetch always uses the default cache key. This results in a key mismatch.

0 commit comments

Comments
 (0)