Help Center> Content Delivery Network> FAQs> Cache Settings> How Do I Synchronize Content Cached on CDN PoPs with That on the Origin Server?
Updated on 2024-02-26 GMT+08:00

How Do I Synchronize Content Cached on CDN PoPs with That on the Origin Server?

  • You can set cache rules. For content that is frequently updated, you can set a cache rule with a short cache time to live (TTL). For content that is not frequently updated, you can set a cache rule with a long cache TTL to reduce the pressure on the origin server.
  • If the configured cache TTL is not reached but new content is released or content is deleted on the origin server, you can manually purge the cache.
    • Log in to Huawei Cloud console and choose Service List > Content Delivery & Edge Computing > Content Delivery Network. In the navigation pane, choose Prefetch & Purge. On the Cache Purge tab, refresh the cache.
    • Call APIs to force the current content to expire and then prefetch new content. For details, see API Reference.

      If only one file needs to be updated, use URL purge to refresh the file. If you use directory purge, all files in the directory will be refreshed and it will take a long time.

Cache Settings FAQs

more