Style sheet problem with Firefox

1 view
Skip to first unread message

Yasmin Anwar

unread,
Apr 13, 2011, 1:16:08 AM4/13/11
to cs75...@googlegroups.com
Hello everybody,
I had a problem today with I tried to discuss with some friends.
First I would like to thank Dr. Nelson for giving me the hint for searching about the problem, as I had no experience about how to change the MIME type.

here is what happened and how it had been solved:

when I crawled the paged and the style sheets, everything worked fine. but the problem appeared after placing the pages on the cs.odu.edu server.

"The Firefox browser didn't recognize the style sheets, while it worked good with the IE"


I used curl to see what is the MIME type of the style sheets. The Apache web server of cs.edu.odu reports an incorrect MIME type for the style sheet as I found the content type in the reply is text/plain not text/css. As I understood and according to the HTTP specification, Firefox doesn't try to guess the correct MIME type although internet explorer was able to expect its type.

I found the solution for this problem by making a simple .htaccess file and replace it into the parent directory which contains the styles sheets or any files I wanted te browser to recognize its right type. In the .htaccess file, I just sent the correct MIME type for .css or .scss files as text/css and it worked correctly for apache server.

I didn't have to move everything from this server to another one :-)

I wish this will be useful for you.



-----------------
Best Regards
Yasmin

Reply all
Reply to author
Forward
0 new messages