PHPackages                             tig/maxcdn-magento2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tig/maxcdn-magento2

AbandonedArchivedMagento2-module

tig/maxcdn-magento2
===================

TIG Magento 2 MaxCDN extension

1.1.1(8y ago)03[1 issues](https://github.com/tig-nl/maxcdn-magento2/issues)CC-BY-NC-ND-3.0PHPPHP ~7.0|~7.1

Since Apr 19Pushed 6y ago6 watchersCompare

[ Source](https://github.com/tig-nl/maxcdn-magento2)[ Packagist](https://packagist.org/packages/tig/maxcdn-magento2)[ Docs](https://tig.nl)[ RSS](/packages/tig-maxcdn-magento2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

TIG MaxCDN for Magento 2
========================

[](#tig-maxcdn-for-magento-2)

We created this extension to **improve the workability of MaxCDN with Magento 2**. At this point the moments at which MaxCDN's refreshes its servers are depended on them. They poll periodically if new files have been uploaded or download them upon request. This means that the first request is always slower than it could be.

- But what if you change an already existing image or file?
- What if you made changes to your JS- or CSS-code?

In these (or any other similar) scenario's, this means: if you forget to login to your MaxCDN-account and purge your pull zone(s) after you made changes to your codebase and/or filesystem, either your layout will break or your visitors are presented with outdated information.

You can imagine that it makes more sense to **let Magento decide when the files on your MaxCDN pull zone are refreshed**, instead of the other way around. This extension makes **Magento 2 and MaxCDN work together**, instead of separated from each other.

What does it do?
----------------

[](#what-does-it-do)

- It purges all available pull zones in your account, when:
    - You press the 'Purge All Pull Zones'-button within the Cache Management-page, or
- Whenever the following happens:
    - Flush Magento Cache,
    - Flush Cache Storage,
    - Flush Catalog Images Cache,
    - Flush JS/CSS Cache,
    - Upload a product image.

At this point this extension has only been tested on Magento 2.1.\*, but we will make it compatible with more recent versions in upcoming releases.

Installation using Composer
---------------------------

[](#installation-using-composer)

```
composer require tig/maxcdn-magento2
```

Configuration
-------------

[](#configuration)

This module's configuration can be found under **Stores** &gt; **Configuration** &gt; **Advanced** &gt; **MaxCDN**.

### To create your API Application

[](#to-create-your-api-application)

- Make sure you're logged in to your MaxCDN-account and follow [this URL](https://cp.maxcdn.com/account/api)
- Click on **Create Application**
- Enter a *Name* and *Description* for your API-application, the *Application URL* and *Callback URL* should replicate your store-URL
- Check *Allow API key full permission to this account*
- Click on **Update** and you'll be presented with the necessary credentials to configure the extension.
- **Don't forget to Whitelist your servers' IP!**

### Module Configuration

[](#module-configuration)

- Take note of the **Company Alias**, the **Consumer Key** and the **Consumer Secret** and enter them in the corresponding fields of this Magento 2 module's configuration page.
- Go to **Stores** &gt; **Configuration** &gt; **General** &gt; **Web** and enter your Pull Zone's CDN URL in the fields *(Secure) Base URL for Static View Files* and *(Secure) Base URL for User Media Files*.
    - Make sure you append each URL with either */pub/static* or */media/* respectively.
- Within the MaxCDN Control Panel, go to **Zones** &gt; **Pull Zones**,
- Click on **Manage** &gt; **Settings** next to the corresponding Pull Zone.
- Within **Settings**, make sure you've checked the *Add CORS Header*-option and clicked **Update**.
- You're all set! Enjoy **MaxCDN on Magento 2**!

FAQ
---

[](#faq)

> I keep getting CORS-related errors in my console!

Make sure you've followed the guide above step by step. Check [your Pull Zone's](https://cp.maxcdn.com/zones/pull/) White-/Blacklist inside the MaxCDN Control Panel. If everything seems to be in order, read [this article](https://www.maxcdn.com/one/tutorial/how-to-use-cdn-with-webfonts/) for further troubleshooting.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

2

Last Release

2937d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/31bbbc895312ad14c21fa1f9452f1dcac307f67e7690625e7262a12d0034b55b?d=identicon)[tig-rikjonkmans](/maintainers/tig-rikjonkmans)

![](https://avatars.githubusercontent.com/u/11065481?v=4)[Robert Grundeken](/maintainers/tig-robertgrundeken)[@tig-robertgrundeken](https://github.com/tig-robertgrundeken)

![](https://avatars.githubusercontent.com/u/36000627?v=4)[Daan van den Bergh](/maintainers/tig-daanvandenbergh)[@tig-daanvandenbergh](https://github.com/tig-daanvandenbergh)

![](https://avatars.githubusercontent.com/u/16078545?v=4)[Joost Schildwacht](/maintainers/schldwcht)[@schldwcht](https://github.com/schldwcht)

---

Top Contributors

[![tig-daanvandenbergh](https://avatars.githubusercontent.com/u/36000627?v=4)](https://github.com/tig-daanvandenbergh "tig-daanvandenbergh (36 commits)")[![schldwcht](https://avatars.githubusercontent.com/u/16078545?v=4)](https://github.com/schldwcht "schldwcht (2 commits)")

### Embed Badge

![Health badge](/badges/tig-maxcdn-magento2/health.svg)

```
[![Health](https://phpackages.com/badges/tig-maxcdn-magento2/health.svg)](https://phpackages.com/packages/tig-maxcdn-magento2)
```

###  Alternatives

[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

277.1k](/packages/mage-os-module-automatic-translation)[zepgram/module-rest

Technical module to industrialize API REST call with dependency injection pattern using Guzzle library

1326.2k](/packages/zepgram-module-rest)[graycore/magento2-graphql-introspection-cache

1015.2k](/packages/graycore-magento2-graphql-introspection-cache)[mage-os/mageos-common-async-events

Send REST requests to external endpoints asynchronously. This module implements the most common events like order creation and customer change.

147.7k2](/packages/mage-os-mageos-common-async-events)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
