{"id":9982,"date":"2025-01-21T08:23:17","date_gmt":"2025-01-21T08:23:17","guid":{"rendered":"https:\/\/wpx.net\/kb\/?post_type=ht_kb&#038;p=9982"},"modified":"2025-07-18T10:32:50","modified_gmt":"2025-07-18T10:32:50","slug":"how-to-integrate-wpx-xdn-with-nitropack-for-automatic-cache-clearing-if-using-a-proxy","status":"publish","type":"ht_kb","link":"https:\/\/wpx.net\/kb\/how-to-integrate-wpx-xdn-with-nitropack-for-automatic-cache-clearing-if-using-a-proxy\/","title":{"rendered":"How to integrate WPX XDN with NitroPack for automatic cache clearing when using a proxy?"},"content":{"rendered":"\n<p>If your website uses the <strong>NitroPack<\/strong> plugin alongside <strong>WPX XDN<\/strong>, this guide will help you set up an integration that automatically clears WPX XDN\u2019s cache whenever you clear the NitroPack cache, even if your site is behind a proxy (like Cloudflare).<\/p>\n\n\n\n<p>Since NitroPack relies on DNS-based detection, if your site is <strong>not directly pointing to WPX\u2019s IP addresses<\/strong> (e.g., when using Cloudflare\u2019s proxy), you\u2019ll need to configure additional integration steps for everything to work smoothly.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">If your website is directly connected to WPX XDN\u2019s IPs without any proxy, no special setup is needed; cache clearing will happen automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1. Log in to NitroPack<\/h2>\n\n\n\n<p>Go to <strong><a class=\"\" href=\"https:\/\/app.nitropack.io\" target=\"_blank\" rel=\"noopener\">https:\/\/app.nitropack.io<\/a> <\/strong>and log in to your NitroPack dashboard.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2. Open the Integrations Menu<\/h2>\n\n\n\n<p>From the NitroPack dashboard, navigate to the <strong>Integrations<\/strong> section in the sidebar menu.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69ed3fcb104c2&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69ed3fcb104c2\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1291\" height=\"695\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5.png\" alt=\"\" class=\"wp-image-13257\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5.png 1291w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5-300x162.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5-1024x551.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5-768x413.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5-50x27.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5-60x32.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-5-100x54.png 100w\" sizes=\"auto, (max-width: 1291px) 100vw, 1291px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. (Optional) Connect your Cloudflare Account<\/h2>\n\n\n\n<p>If your site uses Cloudflare as a proxy, you need to connect NitroPack to Cloudflare:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the <strong>Cloudflare<\/strong> integration widget, click <strong>View Settings<\/strong>.<\/li>\n\n\n\n<li>Enter your <strong>Cloudflare API token<\/strong> in the provided field to link NitroPack and Cloudflare.<\/li>\n<\/ul>\n\n\n\n<p>This connection allows NitroPack to properly clear the cache when your site is behind Cloudflare\u2019s proxy.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69ed3fcb10d89&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69ed3fcb10d89\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1459\" height=\"752\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6.png\" alt=\"\" class=\"wp-image-13267\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6.png 1459w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6-300x155.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6-1024x528.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6-768x396.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6-50x26.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6-60x31.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-6-100x52.png 100w\" sizes=\"auto, (max-width: 1459px) 100vw, 1459px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>You can find the<a href=\"https:\/\/support.nitropack.io\/en\/articles\/8390242-configuring-cloudflare-to-work-with-nitropack\" data-type=\"link\" data-id=\"https:\/\/support.nitropack.io\/en\/articles\/8390242-configuring-cloudflare-to-work-with-nitropack\" target=\"_blank\" rel=\"noopener\"><strong> Nitropack guide<\/strong><\/a> on how to configure it with CloudFlare. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Configure the Reverse Proxy Settings for WPX XDN<\/h2>\n\n\n\n<p>Return to the <strong>Integrations<\/strong> page and find the <strong>Reverse Proxy (Varnish, NGINX, etc.)<\/strong> section. Click <strong>View Settings<\/strong> to open the configuration.<\/p>\n\n\n\n<p>Fill in the following details: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>URL for performing a complete purge<\/strong> &#8211; Enter your full site URL; replace &#8216;domain&#8217; with your actual site name, for example, https:\/\/www.wpx.net, and add &#8216;\/.*&#8217; at the end of the URL &#8211; https:\/\/www.[domain]\/.*<\/li>\n\n\n\n<li><strong>HTTP method when purging a single URL<\/strong> &#8211; Set this to &#8216;PURGE&#8217;.<\/li>\n\n\n\n<li><strong>HTTP method when purging the entire reverse proxy cache<\/strong> &#8211; Set this to &#8216;PURGE&#8217; as well.<\/li>\n\n\n\n<li><strong>List of IPs of reverse proxy servers<\/strong> &#8211; Add the following IP address: <strong>127.0.0.1:6081<\/strong><\/li>\n<\/ul>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69ed3fcb12852&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69ed3fcb12852\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"863\" height=\"820\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings.png\" alt=\"\" class=\"wp-image-9985\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings.png 863w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings-300x285.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings-768x730.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings-50x48.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings-60x57.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/reverse-proxy-settings-100x95.png 100w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5. Save and Verify Connection<\/h2>\n\n\n\n<p>After entering the details, save your changes. Both the Cloudflare and Reverse Proxy integrations should show the status <strong>Connected<\/strong>.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;69ed3fcb1300a&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"69ed3fcb1300a\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1220\" height=\"540\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7.png\" alt=\"\" class=\"wp-image-13270\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7.png 1220w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7-300x133.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7-1024x453.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7-768x340.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7-50x22.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7-60x27.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2025\/01\/image-7-100x44.png 100w\" sizes=\"auto, (max-width: 1220px) 100vw, 1220px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">You\u2019ve successfully integrated WPX XDN with NitroPack and Cloudflare to enable seamless, automatic cache clearing even when using a proxy.<\/p>\n\n\n\n<p>Stuck at any point? Don\u2019t worry, just click the live chat widget in the bottom-right, and one of our support agents will assist you in <strong>under 30 seconds<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your website uses the NitroPack plugin alongside WPX XDN, this guide will help you set up an integration that automatically clears WPX XDN\u2019s cache whenever you clear the NitroPack cache, even if your site is behind a proxy (like Cloudflare). Since NitroPack relies on DNS-based detection, if your site&#8230;<\/p>\n","protected":false},"author":9,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"ht-kb-category":[58],"ht-kb-tag":[],"class_list":["post-9982","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-optimization"],"_links":{"self":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/9982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/comments?post=9982"}],"version-history":[{"count":19,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/9982\/revisions"}],"predecessor-version":[{"id":13608,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/9982\/revisions\/13608"}],"wp:attachment":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/media?parent=9982"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=9982"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=9982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}