Hi @sarvani24 and thanks for sharing these updates!
For CloudFront reverse proxy with 404 errors on static assets (hubfs, hs-fs), ensure your cache behaviors explicitly allow these paths: /_hcms/*, /hs/*, /hubfs/*, /hs-fs/hubfs/*, /hs-fs/*, /cs/c/*, and /e3t/*.
Note that hs-fs/hubfs/* was added on December 2024.
- In CloudFront Behaviors tab, create separate behaviors for each required path pattern
- Set each behavior’s origin to your HubSpot origin (e.g., 123456.sites-proxy.hscoscdn00.net)
- Verify your Origin Request Policy forwards cookies, query parameters, and headers (especially User-Agent)
- Check https://[yourDomain]/_hcms/diagnostics to confirm configuration
The 404s likely mean CloudFront isn’t routing those specific asset paths to HubSpot’s origin.
Here is the documentation for reference:
- Use a reverse proxy with HubSpot
- CDN path for static assets (CSS & JavaScript) changing
I hope this helps!
Bérangère
This post was created with the assistance of AI tools.