DA.
DA.

Reputation: 40671

CSS file from external server. Where are referenced images being pulled from?

This feels like a very dumb question that should be obvious to me. ;)

If we have our site www.example.com but we're pulling our CSS files from a cdn domain www.examplecdn.com if we have this in said css file...

.sample {background url('/images/myimage.gif')}

...which server will the browser request the images from? Is it consistent from browser to browser?

Upvotes: 2

Views: 140

Answers (1)

lgomezma
lgomezma

Reputation: 1637

The URL is related to where the CSS is stored. So in this case the remote server would be the one asked for the image.

Upvotes: 2

Related Questions