0

I'm using a CMS called 'Nukeviet' and I installed it on my localhost. I'm facing a very strange problem, I've tried to search for the solution but nothing found.
I can see that css files are not working at all. When I use Firebug to find the problem, I switch to the tab 'CSS' and... all the required css files are there but it says... there're no rules! When I use the Developer tools of Google Chrome, in Resources tab, Chrome can see all the css files, but the contents of them are abnormal, like in this image:
.
I checked the encoding but it's normally ANSI. And, of course, the contents in all the css files are normal ANSI, no international text.
I tried copying the css files to a new place and write a new HTML for testing, those CSS works perfectly as usual without any problem.
So I can't understand why there're "ugly" question marks like that. Something... encrypted it?
Javascript files get the exact same problem, but image files are ok, all the others are ok, just problem with CSS and Javascript.

5
  • 3
    First thought is that deflate or gzip compressed versions are being served without the correct indicating header. Commented Feb 9, 2011 at 1:31
  • Please try the Network tab and post the headers served with this file. Commented Feb 9, 2011 at 1:33
  • @deceze: here is the header: click to see the image Commented Feb 9, 2011 at 2:04
  • Well, that explains what's happening. There is no Content-Encoding response header. As for why - it's probably either a problem with "Nukeviet", or the configuration of your server. I don't know what, specifically. Commented Feb 9, 2011 at 2:24
  • solved, error in httpd.conf. Thank you very much ^^ Commented Feb 9, 2011 at 2:56

1 Answer 1

2

I think your javascript and css files are compressed for example with gzip-compression ...

Please check the configuration of your webserver if the gzip-comression is enabled. If you're using Apache this can also be done in the .htaccess-files instead of the server-configuration - but I think that's stuff you know - don't you?

For further information: http://developer.yahoo.com/performance/rules.html#gzip At this page you can also check if some header-informations are missing in the response you get from your server if you request the css-file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.