tags:

views:

37

answers:

1

This works:

@import   "foo.css" 

This fails:

@import   "foo.cssabc" 

Any reason for this?

+4  A: 

The filename is irrelevant.

You just need to make sure your server is returning Content-Type: text/css for both.

Nicolás
I just checked via firebug there's no `Content-Type` header for both `.css` and `.cssabc` .But one works,the other fails.
wamp
@wamp how are you asserting this?
mxmissile
Haven't you ever used **firebug** ?
wamp
@wamp read Ben's comment above...
mxmissile
Interesting. I just looked at StackOverflow's CSS in Firebug's network tab, and `Content-Type` is not there. However, downloading with `curl -v` shows it. I suggest you use http://redbot.org/ to check what your server is returning, since Firebug seems not to show this particular header.
Nicolás