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.cs s">
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.
Here is my link line:
<link rel="stylesheet" type="text/css" href="stylesheets/style.cs
I have tried different link references, /stylesheets/style.css, ./stylesheets/style.css including full url. I have also tried adding <% response.contenttype="text
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> FF requires the content type to be text/css.
Yes, I know. Perhaps you don't understand what I meant.
Yes, I know. Perhaps you don't understand what I meant.
ASKER