Deprecation of MaxCDN content delivery network URLs
MaxCDN, Recharge's deprecated CDN Provider, is going end-of-life and Recharge has had to change our content delivery network URL structure. Recharge has been proactively updating these Theme files, but in some cases old URLs have resurfaced. The reappearance of the URLs is likely due to remote repository information undoing link updates to the Theme files we have attempted.
For stores using remote repositories, it is important to update the old domain names to the new URL structure. This article outlines the issue, action required, and important dates.
- Shopify Checkout Integration
- Recharge Checkout on Shopify
- Custom
Before you start
Required action outlined in this article applies to Shopify stores that are controlling Theme files or Script Tags on the Shopify storefront using your own version control for these files.
Update domain names
Stores operating remote repositories will need to update domain names to the new domain, static.rechargecdn.com
, before December 20th, 2022.
Search for the following domain names and replace with our new endpoint, static.rechargecdn.com
:
rechargeassets-bootstrapheroes.rechargeapps.netdna-cdn.com
rechargeassets-bootstrapheroes-rechargeapps.netdna-ssl.com
rechargestatic.bootstrapheroes.netdna-cdn.com
rechargestatic-bootstrapheroes.netdna-ssl.com
RegEx Syntax
The following RegEx commands can be used to update files and editor that supports the feature:
s/http\:\/\/rechargeassets-bootstrapheroes.rechargeapps.netdna-cdn.com/https\:\/\/static.rechargecdn.com/
s/http\:\/\/rechargestatic.bootstrapheroes.netdna-cdn.com/https\:\/\/static.rechargecdn.com/
s/rechargeassets-bootstrapheroes-rechargeapps.netdna-ssl.com/static.rechargecdn.com/
s/rechargestatic-bootstrapheroes.netdna-ssl.com/static.rechargecdn.com/
Command Line Update
OSX Compliant sed command to update a single file (replace $filename with the name of the file to be updated):
sed -i '' "s/http\:\/\/rechargeassets-bootstrapheroes.rechargeapps.netdna-cdn.com/https\:\/\/static.rechargecdn.com/g" ${filename}
Examples
Example 1: Paths beginning with http://
You will need to replace http://
with https://
and change the domain URL to static.rechargecdn.com
. The rest of the URI remains unchanged.
Old path:
http://rechargeassets-bootstrapheroes.rechargeapps.netdna-cdn.com/static/images/widget/rc_widget__banner@2x.png
New path:
https://static.rechargecdn.com/static/images/widget/rc_widget__banner@2x.png
Example 2: Paths beginning with https://
Replace the old domain with the new static.rechargecdn.com
domain. The rest of the URI remains unchanged.
Old path:
https://rechargeassets-bootstrapheroes-rechargeapps.netdna-ssl.com/static/images/widget/rc_widget__banner@2x.png
New path:
https://static.rechargecdn.com/static/images/widget/rc_widget__banner@2x.png
Important dates
- December 20th, 2022 - All URLs should be updated
- December 31st, 2022 - MaxCDN shuts down
FAQs
What is the impact of not making this update to my repository?
There are two potential outcomes:
- If the reference is to any Recharge widgets, the referencing pages (potentially including checkout) will no longer work.
- If the reference is to any non-functional asset (such as images), the page will not render properly.
Does this apply to a specific Shopify implementation?
There is potential for any Shopify storefronts, including Recharge Checkout on Shopify or Shopify Checkout Integration, to have an issue.
How do I know if the MaxCDN deprecation applies to me?
Generally speaking, this change only impacts merchants who have customized their storefronts. If you have customized the storefront by working with developers or adjusting the code, you may need to review the integration you have in place. Most often MaxCDN is in play when the integration uses an external system like GitHub to manage your theme files. However, if you are unsure if you have had this type of custom work done, we recommend searching your theme files for the URLs noted in the domain names section of the guide and updating if necessary.
I'm no longer working with the developer who implemented my customizations. Can Recharge help me adjust my coding?
Custom development work like this is not something supported by Recharge as per our design and integration policy. If you are using external systems, you will need to access and update your theme files. If you are not in contact with that developer and you are not familiar with HTML structures, we would recommend hiring a Recharge Agency Partner.