This is what chrome's console says:

Resource interpreted as Stylesheet but transferred with MIME type text/html: "someserver/wp-content/themes/pgcss/normalize.css/?ver=3.5.1". someserver:18

Resource interpreted as Image but transferred with MIME type text/html: "someserver/wp-content/themes/pgimg/lens.png/". someserver:77

Obviously something in injecting a slash at the end of my file.
I am not very familiar with nginx , what can I do?

  • 1
    Can you supply the code that enqueues the stylesheet and that outputs the image? – Johannes Pille Apr 18 '13 at 17:28
  • What is your Nginx configuration for rewrites? Are you using try_files? Please paste your site config in the original question so we can see the full picture. – Christiaan May 31 '13 at 14:18

Check the mime.types file in Nginx's config directory (if you're on Linux this is typically /etc/nginx/). If there's no MIME type file, check to see whether MIME types are declared inside nginx.conf. If not, you may need to create a mime.types file and include it in nginx.conf.

Here's the information on the Nginx wiki about MIME types: http://wiki.nginx.org/HttpCoreModule#types

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.