Welcome! Log In Create A New Profile

Advanced

CSS file in Facebook app being served up as text/html

Ian Evans
September 23, 2011 02:46AM
I'm hosting a Facebook canvas app on my server and a CSS file is not
getting loaded because it's apparently being served up as text/html and
not text/css.

I have no problems with the css files on my web site hosted on the same
server and my nginx conf has the standard mime types file loaded in the
conf.

Not sure why calling it in a facebook iframe is causing the error.
Here's the dump from Live HTTP Headers:

GET /myappname/multifriend.css HTTP/1.1
Host: www.example.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101
Firefox/6.0.2
Accept: text/css,*/*;q=0.1
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection: keep-alive
Referer: https://www.example.com/myappname/invite3.php


HTTP/1.1 200 OK
Date: Fri, 23 Sep 2011 06:28:49 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.6

Thanks!

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

CSS file in Facebook app being served up as text/html

Ian Evans September 23, 2011 02:46AM

Re: CSS file in Facebook app being served up as text/html

Reinis Rozitis September 23, 2011 07:10AM

Re: CSS file in Facebook app being served up as text/html

Ian Evans September 23, 2011 03:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready