CDN for HubSpot

Connect a campaign or media hostname you control to Cloud CDN. Cache reusable files and leave forms and personalized responses with their HubSpot handlers.

Example cache policy
Public, cacheable resource
/campaigns/autumn/guide.pdf
Bypass shared cache
POST /forms/lead

Set delivery rules for campaign assets

Put Cloud CDN in front of HubSpot hostnames you reverse-proxy or adjacent campaign origins. Cache public pages and media. Keep HubSpot app and form posts on HubSpot.

Landing pages at the edge

Cache responses for public campaign pages on a hostname you manage.

Creative assets cached globally

Hero images and downloadables are stored at the edge after the first miss.

Forms still post to HubSpot

Cached pages do not intercept HubSpot form POSTs or tracking beacons incorrectly.

Configuration

Cloud CDN overview
  1. Confirm DNS control

    Map the campaign or CMS hostname you own to Cloud CDN.

  2. Reverse-proxy the live origin

    Validate cache for public pages and a bypass for the HubSpot editor.

  3. Keep form endpoints dynamic

    Do not cache POST targets or personalised smart-content responses.

  4. Purge after publish

    Invalidate landing-page URLs when campaigns go live.

Operational outcomes

  • HubSpot campaign hostnames can sit on Cloud CDN
  • Editor and app traffic stays on HubSpot
  • Media is delivered globally
  • Publish is followed by purge

Frequently asked questions

Can I put every HubSpot domain on a CDN?

Only hostnames where you control DNS and origin pull. HubSpot app domains should stay on HubSpot.

Will smart content still work?

Personalised HTML should bypass cache. Anonymous landing pages can be cached.

What about HubSpot tracking scripts?

Scripts can be cached as static assets. Tracking beacons and POSTs remain dynamic.

Can this sit beside Cloud DNS?

Yes. Use Cloud DNS for the campaign domain and Cloud CDN for delivery.