{"id":16189,"date":"2026-08-20T02:43:56","date_gmt":"2026-08-20T02:43:56","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=16189"},"modified":"2026-08-20T02:43:56","modified_gmt":"2026-08-20T02:43:56","slug":"hostinger-cdn-how-to-clear-the-cache","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/hostinger-cdn-how-to-clear-the-cache\/","title":{"rendered":"Hostinger CDN: How to clear the cache"},"content":{"rendered":"<p>Clear the <a href=\"https:\/\/www.hostinger.com\/support\/7935917-hostinger-cdn-website-optimization\/\">Hostinger CDN<\/a> cache when your website shows outdated content after an update. The Content Delivery Network (CDN) stores copies of your website&rsquo;s static files, so recent changes can take time to appear. To show fresh content immediately, flush the CDN cache, use Development mode while actively editing, and clear the remaining cache layers.<\/p><h2 id=\"h-how-to-flush-the-hostinger-cdn-cache\">How to flush the Hostinger CDN cache<\/h2><ol>\n<li>Go to <strong><a href=\"https:\/\/www.hostinger.com\/support\/1583518-how-to-access-the-dashboard-in-hostinger\/\">hPanel<\/a> &rarr; Websites.<\/strong><\/li>\n<li>Click <strong>Dashboard<\/strong> next to the website.<\/li>\n<li>Select <strong>Performance &rarr; CDN<\/strong> on the left sidebar. For Agency hosting, select CDN directly on the left sidebar.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16170\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png\" alt=\"\" width=\"266\" height=\"667\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28.png 266w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_08-28-120x300.png 120w\" sizes=\"(max-width: 266px) 100vw, 266px\" \/><\/li>\n<li>Click <strong>Flush cache<\/strong>.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16211\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-39.png\" alt=\"\" width=\"1173\" height=\"366\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-39.png 1173w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-39-300x94.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-39-1024x320.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-39-768x240.png 768w\" sizes=\"(max-width: 1173px) 100vw, 1173px\" \/><\/li>\n<\/ol><p>Flushing invalidates the cached copies of the entire website and takes effect within seconds. The next request for each page fetches fresh content from your website. Flush cache affects the Hostinger CDN cache only &mdash; the browser, server, and plugin cache layers keep their copies until cleared separately.<\/p><h2 id=\"h-use-development-mode-while-editing-your-website\">Use Development mode while editing your website<\/h2><p>Development mode makes Hostinger CDN skip its cache entirely, so every change appears in real time. It affects the CDN cache only &mdash; server and plugin caches still apply:<\/p><ol>\n<li>In the CDN section, enable <strong>Development mode<\/strong>.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16195\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-22.png\" alt=\"\" width=\"1190\" height=\"372\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-22.png 1190w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-22-300x94.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-22-1024x320.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-22-768x240.png 768w\" sizes=\"(max-width: 1190px) 100vw, 1190px\" \/><\/li>\n<li>Make and preview your changes.<\/li>\n<li>Disable <strong>Development mode<\/strong> when finished.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16194\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_3.png\" alt=\"\" width=\"1171\" height=\"364\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_3.png 1171w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_3-300x93.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_3-1024x318.png 1024w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-20_09-21_3-768x239.png 768w\" sizes=\"(max-width: 1171px) 100vw, 1171px\" \/><\/li>\n<\/ol><p>Disable Development mode after editing &mdash; while it is active, your website loses the speed benefit of CDN caching.<\/p><h2 id=\"h-clear-the-other-cache-layers-on-your-website\">Clear the other cache layers on your website<\/h2><p>Outdated content can come from three other cache layers besides the CDN: the browser cache, the server cache, and WordPress plugin caches.<\/p><ul>\n<li><a href=\"https:\/\/www.hostinger.com\/tutorials\/clear-browser-cache\/\"><strong>Browser cache<\/strong><\/a> &mdash; reload the page in an incognito window, or hard-refresh with Ctrl+Shift+R (Cmd+Shift+R on Mac). Visitors&rsquo; browsers refresh cached files automatically when their stored copies expire.<\/li>\n<li><strong>Server cache<\/strong> &mdash; purge the LiteSpeed server cache in <a href=\"https:\/\/www.hostinger.com\/support\/6215624-how-to-use-cache-manager-at-hostinger\/\"><strong>Cache Manager<\/strong><\/a> under <strong>Websites &rarr; Dashboard &rarr; Cache Manager<\/strong>.<\/li>\n<li><strong>WordPress caching plugins<\/strong> &mdash; purge the cache from the plugin&rsquo;s own menu if your website uses one, and keep only one caching plugin active.<\/li>\n<\/ul><h2 id=\"h-how-to-check-whether-content-is-served-from-the-hostinger-cdn-cache\">How to check whether content is served from the Hostinger CDN cache<\/h2><p>Every response delivered through Hostinger CDN includes the <code>`x-hcdn-cache-status`<\/code> header:<\/p><ol>\n<li>Open the page in a browser, open the developer tools (F12), and select the <strong>Network<\/strong> tab.<\/li>\n<li>Reload the page and click a file in the list.<\/li>\n<li>Find <code>`x-hcdn-cache-status`<\/code> in the <strong>Response Headers<\/strong> section.<\/li>\n<\/ol><p>The header shows <strong>HIT<\/strong> (served from the CDN cache), <strong>MISS<\/strong> (fetched fresh from your website), EXPIRED (cached copy expired and fetched again), <strong>DYNAMIC<\/strong> (not cacheable), <strong>BYPASS<\/strong> (cache skipped, for example in Development mode), or REVALIDATED (refreshed content). The same statistics appear in the Analytics tab of the CDN dashboard.<\/p><p><strong>NOTE<\/strong><\/p><ul>\n<li>HTML pages are generally fetched from your website on each request, while static files such as images, CSS (Cascading Style Sheets), and JavaScript are cached at the CDN edge. Outdated HTML usually comes from a server or plugin cache rather than from Hostinger CDN.<\/li>\n<\/ul><p>After flushing the CDN cache and clearing the remaining layers, your visitors receive the updated version of the website right away.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flush the Hostinger CDN cache to show updated website content to your visitors<\/p>\n","protected":false},"author":594,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[262],"tags":[],"class_list":["post-16189","post","type-post","status-publish","format-standard","hentry","category-cdn"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/16189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/594"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=16189"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/16189\/revisions"}],"predecessor-version":[{"id":16214,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/16189\/revisions\/16214"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=16189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=16189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=16189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}