Link to home
Start Free TrialLog in
Avatar of troyd1
troyd1

asked on

ASP linked stylesheet mime type problem in firefox

I have an asp page that ignores the stylesheet in firefox. I have researched it and understand the problem, just not how to fix it. The error that I get in the error console is: the stylesheet XXXX was not loaded because it's mime type "application/octet-stream" is not "text/css".

Here is my link line:

<link rel="stylesheet" type="text/css" href="stylesheets/style.css">
I have tried different link references, /stylesheets/style.css, ./stylesheets/style.css including full url. I have also tried adding <% response.contenttype="text/css" %> before the line, but that did not help either as the page nows opens up in viewsource mode. The server is sending the linked stylesheet with the same mime type as the page and firefox, correctly, does not assume the correct mime type.
ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of troyd1
troyd1

ASKER

The first does not work for asp pages. It treats them all as asp. FF requires the content type to be text/css.
> FF requires the content type to be text/css.

Yes, I know.  Perhaps you don't understand what I meant.