Spotlight

Case Study Microsoft

How Microsoft scaled global content delivery

Find out how Microsoft used Gcore to strengthen delivery across regions.

case study ProSieben GNTM app TOPSHOT

How ProSieben scaled GNTM's app TOPSHOT

Explore how ProSieben brought real-time AI portraits to GNTM's audience.

case study Higgsfield

How Higgsfield scaled AI video generation

See how Gcore helped Higgsfield scale with GPUs and Managed Kubernetes.

case study Fawkes Games

How Fawkes Games stopped DDoS attacks

See how Gcore protected gaming servers from massive DDoS threats without disrupting gameplay.

We're hiring

Help build the next chapter of the web

We're not just filling seats. We're building a team that will write the next chapter of the internet.

  1. Home
  2. Blog
  3. Why and how to purge cache
Network
Expert insights
Developers

Why and how to purge cache

  • May 21, 2019
  • 1 min read
Why and how to purge cache

If the content of your service doesn’t change much all you need is to keep it in the CDN cache as long as possible.

But what if you renewed a file on the origin server, but a CDN server returns an old one? Right, you need to purge the CDN cache.

How to purge cache

Option 1. Using API

Option 2. Using the control panel

CDN Resources. On the CDN tab go to the CDN Resources section. Find a CDN Resource which cache you want to purge. In the drop-down list near the Settings button select Purge.

Purge section. On the CDN tab go to the Purge section. If you have two or more CDN Resources select the one which cache you want to purge in the drop-down list.

Purge methods

Purge all. Clears everything from the CDN cache.

Note! Once the CDN cache is empty all requests for the purged content will go to the origin server which might overload it. So if you have a lot of assets we strongly recommend using Selective Purge.

Selective Purge. Specify paths to the files without the domain name. Each path should start from a new line with / or * (* replaces any number of symbols).

How it works

Example 1. Purge by URL:

Example 2.Purge all files from the static directory:

Example 3. Purge all files from the static directory with JPG format:

Example 4. Purge all files with /hd/ in the path:

Keep in mind

Limits

  • 1 request per minute
  • Up to 50 paths in one request

Rewrite

If this option is enabled for the CDN Resource, specify a full path in your purge request.

Check out our new plans

We have updated our tariff plans and added a new FREE plan. Sign up for it and use 100 GB per month completely free.

Pricing

Deliver fast and efficiently!

Try Gcore Network

Gcore all-in-one platform: cloud, AI, CDN, security, and other infrastructure services.

Related articles

A digital dashboard displays various data visualizations and the collaboration text 'Gcore x AVEQ'.
When the numbers lie: A CDN diagnostics case study

Real streaming problems rarely show up with a label on them. The broadcaster's ops team is fielding complaints. A dashboard glows with elevated stall counts. Meanwhile the CDN logs look perfectly healthy — latency is nominal, cache hits are

Sifted 100 France & Benelux 2026 announcement with falling confetti and spotlights.
Gcore named in Sifted Top 100 France & Benelux 2026

Gcore has been recognized as one of the top 100 fastest-growing technology startups in France and Benelux by Sifted — one of Europe's leading tech publications. Our inclusion in the B2B SaaS & Cloud Infrastructure category points to ris

World Cup 2026 Streaming Roundup text with a stylized soccer stadium and ball.
How various audiences viewed the World Cup via Gcore

Gcore's content delivery network (CDN) was the backbone behind many broadcasters and live streams at the recent 2026 World Cup, and we observed some interesting stats on how tournament viewing habits differed across the five regions where w

Two founders discuss Melious AI moving its CDN and DNS to Gcore.
Why Melious AI moved its CDN and DNS to Gcore: a founder conversation about sovereign AI in Europe

For many startups, infrastructure decisions are mostly about performance, pricing, and developer experience. For Melious AI, they are also about trust.Melious AI is a German startup building a European AI platform around privacy, transparen

Four e-commerce takeaways from the Berlin Expo

E-commerce is moving fast — and the conversations at E-commerce Berlin Expo reflected just how much has changed in the last few years.Now that the event is over, here are four things I took away from speaking with key players across the ind

Gcore partners with AVEQ to elevate streaming performance monitoring

At Gcore, delivering exceptional streaming experiences to users across our global network is at the heart of what we do. We're excited to share how we're taking our CDN performance monitoring to new heights through our partnership with AVEQ

Subscribe to our newsletter

Get the latest industry trends, exclusive insights, and Gcore updates delivered straight to your inbox.