Strange characters when transmitting JavaScript files

Aleksandar Lazic al-nginx at none.at
Fri Jul 20 18:33:42 MSD 2007


Hi,

On Fre 20.07.2007 16:20, Remo Laubacher wrote:
>
>It only happens with several files, not with every JavaScript file!

Deliver the backend application the js or nginx?
Maybe a config snipped or the whole config could help.

>fckeditorcode_gecko.js looks like this:
>/*
>* FCKeditor - The text editor for Internet - http://www.fckeditor.net
>* Copyright (C) 2003-2007 Frederico Caldeira Knabben
>
>The three characters at the beginning shouln't be there of course.

Which content-type is in the response?

curl -v http(s)://YOUR.SERVERNAME.or.IP/..../fckeditorcode_gecko.js

or a telnet to the http-port?

>I'm trying to solve this problem for quite a while but without much
>success so far. What I've tried:
>- rebooted system
>- recompiled nginx (latest version)

the 0.6.x or the 0.5.x?

>- played with mime type

What have you changed?!

>- renamed file to .txt (didn't change anything)
>
>What else could I try?

Have you a error message in the error log?
Maybe a debug log could help: http://wiki.codemongers.com/NginxDebugging
What say a 'file *.js' in the javascript directory for the "broken"
files?

Hth

Aleks





More information about the nginx mailing list