Prevent LiteSpeed cache from affecting Trustmary URLs
The What and Why
Many caching plugins and services often rewrite links placed on your site to cache them and make it quicker to load the site. As useful as this can be, it can also lead to issues with other plugins installed on your site which depend on their contents remaining as originally intended.
Trustmary's embed scripts are no exception, as the script includes an URL from which the contents of the widget are loaded from. A typical Trustmary script would look like this:
<script src="https://widget.trustmary.com/C528CbR8n"></script>
The How
The solution to this is to exclude certain URLs from the caching process in the LiteSpeed settings. This can be done in just a few easy steps:
- Navigate to the Cache section in the LiteSpeed Cache plugin settings.
- Select the Excludes tab.
- Add */widget.trustmary.com/ to the **Do Not Cache URIs text box. Be sure to add the star character at the end of the URL, so it'll include all your widgets.
- Click the Save changes button.** **

This should exclude the Trustmary widget URLs and prevent LiteSpeed from breaking them. If the excluding doesn't seem to work, you can turn off LiteSpeed for a page completely in the WordPress page editor's sidebar:

Updated on: 19/11/2025
Thank you!
