ming.kernel
ming.kernel

Reputation: 3665

Why do we use a different web server for static files?

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

Answers (1)

karthikr
karthikr

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

Related Questions