Skip to main content

Workaround for VM blocking loading of static resources CSS/JS

By Sam Deering

JavaScript

Share:

Free JavaScript Book!

Write powerful, clean and maintainable JavaScript.

RRP $11.95

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

Sam Deering has 15+ years of programming and website development experience. He was a website consultant at Console, ABC News, Flight Centre, Sapient Nitro, and the QLD Government and runs a tech blog with over 1 million views per month. Currently, Sam is the Founder of Crypto News, Australia.

New books out now!

Learn valuable skills with a practical introduction to Python programming!


Give yourself more options and write higher quality CSS with CSS Optimization Basics.