Caching plays a crucial role in improving website performance by temporarily storing web content so it can be delivered faster and with less strain on your origin server. When caching is enabled through VergeCloud’s CDN, your content is stored across multiple layers in our global edge network. This ensures that users around the world experience faster load times, more consistent availability, and a smoother browsing experience regardless of traffic spikes or geographic distance.
In simple terms, caching helps your website respond faster because frequently requested content does not have to be fetched from your origin server every time. Instead, the CDN delivers it directly from the nearest edge location. This reduces server load, minimizes latency, and improves the overall performance of your application.
Whenever a user visits your website, VergeCloud’s CDN checks if the requested content is already stored in the cache.
If it is available, the CDN serves it immediately from the closest edge server. This is known as a cache hit, and it results in a fast and efficient response.
If the content is not available, the request is forwarded to your origin server. This is known as a cache miss. After receiving the response from the origin, VergeCloud stores the content at the edge so that future requests can be served directly from cache.
By reducing how often the origin server is contacted, caching significantly improves performance while ensuring your infrastructure remains stable even during heavy traffic.
It is important to remember that CDNs typically cache only certain kinds of content by default. These include static assets such as images, videos, CSS and JavaScript files, documents, fonts, and similar file types. Using your browser’s developer tools, you can inspect the x cache header to see whether a resource was delivered from the CDN or fetched from your origin.
Note: Only certain data types are cached by default, typically static files such as images, CSS, JavaScript, fonts, and documents.Sign in to your VergeCloud dashboard and navigate to the Caching Settings page. This is where you manage cache levels, edge behavior, browser caching, and advanced options.
Choose how VergeCloud should cache content:
• Off: No caching, meaning every request is sent to the origin.
• Without QueryString: VergeCloud caches content while ignoring query parameters. This is ideal for static files where query strings do not affect the output.
• With QueryString: VergeCloud stores different versions of a resource based on query parameters. This is useful when query strings determine the content returned.
If you make updates to your website, you may need to purge cache:
• Purge Individual Files: Clears the cache for a specific file such as an updated image or script.
• Purge Everything: Clears all cached content at every edge location. Use this only when absolutely necessary, as it can temporarily increase load on your origin.
Cache Max Age lets you specify how long content should remain in cache before the CDN checks with your origin again.
Cache Error Pages allows VergeCloud to temporarily cache non successful responses, reducing pressure on your origin during outages or traffic surges.
Maximum Cache Size defines the largest file size the CDN is allowed to store, which is helpful for large media files.
Browser Cache Duration controls how long a user’s browser stores assets, improving load times on repeat visits.
Caching files that include Set Cookie headers is possible in specific cases where the content is static and cookies are meant only for analytics. Use this carefully to avoid exposing personalized data.
Development Mode ensures that all requests bypass the cache so you can see changes in real time.
Always Online keeps your website accessible by serving cached versions if your origin becomes unreachable.
If no custom rules are set, VergeCloud automatically caches commonly used static file types including images, video, audio, JavaScript, CSS, documents, archives, fonts, and several standard binary formats.
HTML documents are not cached by default because they often contain dynamic or personalized content. If your pages are static or change infrequently, you can enable HTML caching using a Page Rule.
Examples:
• To cache the entire site: yourdomain.com/*
• To cache a single page: yourdomain.com/about us
Make sure your Page Rules are ordered correctly to avoid conflicts.