Help Center/ Content Delivery Network/ FAQs/ Cache Purge and Prefetch/ Which Should I Do First, Purge or Prefetch, When I Want to Update Cache?
Updated on 2024-08-15 GMT+08:00

Which Should I Do First, Purge or Prefetch, When I Want to Update Cache?

If your origin server content is updated and you want to update the cache on CDN PoPs:

  • Purge the cache first. When cache purge is completed (about 5 minutes), prefetch the cache.
  • If you directly perform cache prefetch, content that has been cached on CDN PoPs will not be updated.

If your domain name is added to CDN for the first time and no content is cached on CDN PoPs, you can directly perform cache prefetch to cache the content on PoPs.