CSS does not display depending on the page.

I have a friend who has a really strange problem with my site. When he clicks http://www.copeo.fr/ , the page displays normally, but when he clicks on a link such as www.copeo.fr/user/, CSS is not applied even after updating. Raw html is displayed.

I asked him to render CSS, which is located on amazon S3 hcopeoressources.s3.amazonaws.com/style/futurvert/style.css, and it displays beautiful.

The code is checked on the W3C validator, therefore CSS. I lost what could be the source of the problem. Could this be a corporate cache? IE7 configuration on his machine?

If this happens to someone who can explain this problem to me, I hear everything.

thanks

+4
source share
4 answers

Ok, got my answer. The firewall blocked the CSS that is stored on amazonaws and for the first page, this is a cache that was populated outside the company’s firewall.

+1
source

It appears to be using relative path names. /foo/bar.css will be allowed by sitename.com/foo/bar.css , but foo/bar.css will solve sitename.com/currentpath/foo/bar.css .

0
source

There is an IE error if you have more than 30 style sheets, some or all of them will not be displayed: http://support.microsoft.com/kb/262161

Perhaps this has something to do with this.

0
source

When I hit the CSS URL, I got:

"This XML file does not have any style information associated with it. The document tree is shown below."

We use S3 to work for this type of thing and have no problems, but I think that pulling out a CSS file from amazon S3 and saving it on a more traditional server might help in your problem. Or even solve the problem.

0
source

Source: https://habr.com/ru/post/1309357/


All Articles