Workaround for VM blocking loading of static resources CSS/JS

Sam Deering
Tweet

Documenting some vhost settings fix workaround for VM blocking loading of static resources CSS/JS. Might be useful for someone using Virtual machines and having hanging page loads caused by blocked static content served by Akamai.

127.0.0.1     localhost
# Workaround for VM blocking loading of static resources CSS/JS
# www.domain.com redirects to www.cdn.domain.com
# If it's not working flush your DNS records: ipconfig /flushdns
208.2.218.208     www.domain.com

** NOTE **
You will need to ping cdn.abc.net.au to get the latest akamai node ip address as this changes from time to time.
[latest akamai node ip] www.domain.com

Get your free chapter of Level Up Your Web Apps with Go

Get a free chapter of Level Up Your Web Apps with Go, plus updates and exclusive offers from SitePoint.

No Reader comments