Skip to main content
All CollectionsNitroPack for Magento
How to Configure Fastly CDN With NitroPack for Optimal Magento Performance
How to Configure Fastly CDN With NitroPack for Optimal Magento Performance
Updated over a week ago

If your Magento store uses the Fastly CDN, you need to take additional steps to integrate it with NitroPack. By configuring this setup, NitroPack will synchronize both cache layers, optimizing your website's performance to the fullest extent.

Before you start

Make sure your Magento store has:

Configuring NitroPack with Fastly CDN

Step 1: Update your Full Page Caching settings in Magento Admin

  1. Log in to the admin section of your Magento website.

  2. Navigate to Stores > Configuration > Advanced > System.

  3. Expand the 'Full Page Cache' section.

  4. In the ‘Caching Application’ section, remove the selection from Use system value, and then select Fastly CDN from the drop-down list.

  5. Expand the 'Enable NitroPack' field and select “Yes.”

Step 2: Clean up your cache

Flush your Magento cache using the following commands:

php bin/magento cache:clean
php bin/magento cache:flush

Step 3: Verify that it works properly

Navigate to Magento Admin > NitroPack to review your NitroPack settings and confirm that your pages are in the process of being optimized.

Follow the steps provided in this article, load your website, and check the response headers for the following:

  • X-Nitro-Cache should have the value HIT (indicating NitroPack’s status)

  • X-Cache should have the value HIT (indicating Fastly CDN’s status)

Please make sure that both response headers are present and verify the proper configuration of your Magento website with Fastly CDN and NitroPack.

📌 If you need any assistance or have questions, contact our support team at [email protected] or via the chat bubble at the bottom right corner.

Did this answer your question?