3 Replies Latest reply on Feb 16, 2011 7:31 AM by theute

    No Content-Type on css files

    abe1001

      I'm having a problem with the css-files I have linked in via gatein-resources.xml. Somehow these files don't get any Content-Type in the response header. This is a problem in Internet Explorer 9. I get this lovely message in the console:

      SEC7113: CSS was ignored due to mime type mismatch

       

      Is it possible to fix this? Am I missing any configs?

       

      Kind regards

      Arne Berge

       

       

       

       

       

        • 1. No Content-Type on css files
          theute

          I haven't heard about this issue yet, would be great if you could open a JIRA (jira.jboss.org) about it and propose a patch.

           

          The patch should be pretty much straightforward, looks like:

          /component/web/resources/src/main/java/org/exoplatform/portal/application/ResourceRequestFilter.java

           

          Doesn't set the content type.

           

          Looks like IE moved from very laxist to pedant I prefer it pedant but we may need to adjust,

          1 of 1 people found this helpful
          • 2. No Content-Type on css files
            abe1001

            Issue is comitted.

            https://issues.jboss.org/browse/GTNPORTAL-1804

             

            I added setContentType to the class, build it and replaced the exo.portal.webui.portal-3.1.0-GA.jar file. It works!! Now I get the content-type and it looks great in IE9 also.

             

            Thank you, Thomas.

            • 3. No Content-Type on css files
              theute

              Thank *you* It's not everyday that someone goes all the way through fixing the issue.