Developer Announcements

jmclaren
HubSpot Employee
HubSpot Employee

CDN path for static assets (CSS & JavaScript) changing

This is a reposting of the Developer Changelog. If there are any differences, the version on the changelog itself is the source of truth for the latest information.

https://developers.hubspot.com/changelog/cdn-path-for-static-assets-css-javascript-changing

----

 

We're updating the paths for design manager assets, including CSS and JS files. The paths will change from hs-fs/hub/* to hs-fs/hubfs/*

jmclaren_0-1738164511794.gif

 

What's changing?

This change impacts the URLs at which static design manager assets are served. This includes JS and CSS files linked at the template level as well as associated to HubSpot Modules.
Example old URL:

https://www.example.com/hs-fs/hub/123456789/hub_generated/template_assets/123456789/1726084829403/th...

Example new URL:

https://www.example.com/hs-fs/hubfs/hub_generated/template_assets/1/123456789/1737493186745/template...

This should not have a noticeable effect on most websites. 

Sites that have hardcoded references to files will want to update the references to the new path. Possible reasons to have hard-coded URLs may have been performance enhancing techniques. Another group of sites that may be affected are those using HubSpot's reverse proxy functionality. You'll want to update your reverse proxy to explicitly allow the new path. The old paths will still work for accessing the existing files but could in the future be a redirect to the new URL creating a hop that could have been avoided.

When is it happening?

Newly created assets after December 20, 2024 are already being served at the new path, we will be migrating existing assets over time starting February 12, 2025.

Jon McLaren

Sr. CMS Developer Advocate

Get started developing on the HubSpot CMS Developer Changelog
How to optimize your CMS Hub site for speed

If my reply answered your question, please mark it as a solution, to make it easier for others to find.

1 Reply 1
melindagreen
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

CDN path for static assets (CSS & JavaScript) changing

Jon -- at what point should we start changing our (old, very old) hardcoded URLs in code files? February 12? Before? When we notice them not working? thanks.

0 Upvotes