Reputation: 3665
I am a newer in web development.
Why should I avoid having the same web server handle both Django and static media files, like style sheets or JavaScript?
Upvotes: 2
Views: 314
Reputation: 99620
As a best practice, it is recommended to server static media files via a web server to make things faster.
Also, using a CDN enables content delivery more efficiently to users. The server that delivers content is based on a measure of quickest response time - network proximity(fewest hops) , availability, etc
You can read up more here:
http://developer.yahoo.com/performance/rules.html
Upvotes: 4