Skip to main content
All CollectionsCDN and caching
How to make an Asset Cache Purge request?
How to make an Asset Cache Purge request?

Learn how to purge (invalidate) specific assets for the CDN cache while keeping other cached assets unchanged.

Benjamin Arne avatar
Written by Benjamin Arne
Updated over a year ago

Feature access

Asset cache purge feature is available for customers on Business and Enterprise Plans. See how to enable the CDN cache purge.
โ€‹


Perform an Asset cache purge request

You can invalidate specific asset(s) in the CDN cache via the TwicPics dashboard.

  1. Navigate to the relevant workspace and choose the domain for which you want to invalidate the cache.

  2. Hit the Asset cache purge button on the upper right corner of the domain panel.
    โ€‹

  3. Fill in URLs of the assets to be invalidated and hit the Purge button.

  4. Congratulations! Your image are being invalidated.

Please note that it can take up to 15 minutes to clear assets from all the CDN nodes and cache layers of our servers.

โš ๏ธ If you continue to see an invalidated asset in your browser, it may be saved in your browser cache. Try opening an incognito window or clearing your browser cache.

The history of cache purges performed in the last 7 days is available under the URL insertion area.


๐Ÿ’ก Best practices to avoid cache invalidation

Whenever you are updating a visual asset, we recommend updating its corresponding URL too. By doing so, you avoid having to handle cache invalidations altogether.

However, if it is not possible or desirable to change the URL of an asset, you can consider adding a query string of versioning.

Example: https://domain.com/paths/image1.jpeg?v=2

Using this technique, assets will be invalidated from both the CDN and the browser caches.


Related articles

Did this answer your question?