Solving CSS Stylesheet Not Loading / Rendering Error Résolution de la feuille de style css pas de chargement / Fourniture d'erreur
My blog had this vexing problem where it used to render ugly, really ugly, as the stylesheet wasn’t being loaded on Firefox. Mon blog a ce problème frustrante où elle a utilisé pour rendre laid, vraiment laid, comme la feuille de style n'était pas chargée sur Firefox. However after a refresh everything was fine. Toutefois, après un rafraîchissement tout allait bien. Even the Alexa thumbnail displayed the front page in all its css-less ugliness. Même les Alexa aperçu affiché la page d'accueil sous toutes ses css-moins laideur. Initially I thought it was a temporary file loading error. Au départ, je pensais que c'était un fichier temporaire de chargement erreur. I also reduced the number of Javascripts on the page. J'ai également réduit le nombre de javascripts sur la page. None of them could solve the problem. Aucun d'entre eux ne pourrait résoudre le problème. Finally today, when I was debugging a project using Firebug, I noticed the actual problem. Enfin aujourd'hui, alors que j'étais un projet de débogage en utilisant Firebug, j'ai remarqué que le véritable problème.
The stylesheet was not being loaded simply because the file type returned by the web server was text/plain instead of the required type - text/css. La feuille de style n'était pas en cours de chargement tout simplement parce que le type de fichier renvoyé par le serveur web est text / plain au lieu du type requis - text / css. The solution was simple. I added the following to httpd.conf and restarted the server: La solution est simple. J'ai ajouté ce qui suit à httpd.conf et redémarré le serveur:
- The solution here doesn’t work because the problem is elsewhere, with mod_cache. AddType text/css .css - La solution ne fonctionne pas parce que le problème est ailleurs, avec mod_cache. AddType text / css. Css
The temporary solution is to add the style.css to DisableCache directive in the virtual host configuration section (or in the main section). La solution temporaire est d'ajouter le style.css à DisableCache directive en l'hôte virtuel de configuration (ou dans la section principale). The permanent solution is to update Apache. La solution permanente est de mettre à jour Apache. This is a documented mod_cache defect. Il s'agit d'un défaut mod_cache documenté.
Thanks to Merci à Firebug for helping me solve this problem. pour m'aider à résoudre ce problème.
Note: Internet Explorer did render fine even with this error. Note: Internet Explorer ne rend bien même avec cette erreur.
Filed under Classé sous Browser Navigateur , Firefox , Headline News Headline News , How To Comment , Pro Blogging Blogging Pro , Programming Programmation , Web , Web 2.0 2,0 Web , Web Services Services Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | cet article |
Email this Article Envoyer cet article
You may also like to read Vous mai également à lire |




July 3rd, 2007 at 8:50 am Juillet 3rd, 2007 chez 8:50 am
Hello, I’m sorry to say that it appears that your style sheet is not being loaded when using Firefox. Bonjour, je suis désolé de dire qu'il semble que votre feuille de style n'est pas chargé lors de l'utilisation de Firefox.
July 3rd, 2007 at 12:44 pm Juillet 3rd, 2007 chez 12:44 pm
Can you please clear the cache and see if the problem persists? S’il vous plaît pouvez-vous effacer le cache et voir si le problème persiste?
July 17th, 2007 at 3:47 pm Juillet 17th, 2007 at 3:47 pm
Thank you for pointing me in the right direction to solve this problem. Je vous remercie de me pointer dans la bonne direction pour résoudre ce problème. I figured it might have something to do with the cache. J'ai pensé qu'elle pourrait avoir quelque chose à voir avec le cache.
I think you have a slight error, though. Je pense que vous avez une légère erreur, si. I wasn’t able to find a DisableCache directive in the documentation, but I found CacheDisable Je n'ai pas été en mesure de trouver un DisableCache directive dans la documentation, mais j'ai trouvé CacheDisable
http://httpd.apache.org/docs/2.0/mod/mod_cache.html#cachedisable http://httpd.apache.org/docs/2.0/mod/mod_cache.html # cachedisable
Thank you, Merci,
— Ghodmode -- Ghodmode