# CDNs and Edge Delivery

### Does Shoplift work with CDN, caching, and edge delivery platforms?

If you use platforms that leverage caching technologies to improve site speed or page performance, it is important that you update the cache frequently when running tests with Shoplift.

When launching, pausing, or ending tests, Shoplift will update make updates to the code that is served to visitors. If the previous code is cached, then your tests could incur delays in launching, pausing, or ending.

{% hint style="danger" %}
**Important note on caching solutions when running theme tests**

It is particularly important to update your caching solution when ending theme tests. As development themes are often excluded from caching, there is potential for desynchronization between rendered Shoplift scripts on your live and unpublished themes if the live theme is not also updated.

This can result in redirect loops between themes, since the Shoplift script on the development theme (not cached) will return visitors to the live theme, on which the Shoplift script (cached) will attempt to return visitors back to the development theme because of their tested visitor status.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.shoplift.ai/partners-and-developers/performance/cdns-and-edge-delivery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
