Solving CSS Stylesheet Not Loading / Rendering Error La solución de hoja de estilo CSS no de carga y renderizado de error
My blog had this vexing problem where it used to render ugly, really ugly, as the stylesheet wasn’t being loaded on Firefox. Mi blog ha tenido este problema irritante en el que sirve para hacer feo, feo en realidad, como la hoja de estilos no se carga en Firefox. However after a refresh everything was fine. Sin embargo después de una actualización todo estaba bien. Even the Alexa thumbnail displayed the front page in all its css-less ugliness. Incluso los Alexa miniatura que aparece la primera página en todos sus css-menos fealdad. Initially I thought it was a temporary file loading error. Al principio pensé que era un archivo temporal de error de carga. I also reduced the number of Javascripts on the page. También se redujo el número de Javascript en la página. None of them could solve the problem. Ninguno de ellos podría resolver el problema. Finally today, when I was debugging a project using Firebug, I noticed the actual problem. Por último el día de hoy, cuando yo era la depuración de un proyecto con los Firebug, noté que el verdadero problema.
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 hoja de estilos no se estaba cargado, simplemente porque el tipo de archivo devuelto por el servidor web es text / plain en vez de la necesaria tipo - text / css. The solution was simple. I added the following to httpd.conf and restarted the server: La solución era sencilla. He añadido lo siguiente al httpd.conf y reiniciar el servidor:
- The solution here doesn’t work because the problem is elsewhere, with mod_cache. AddType text/css .css - La solución aquí no funciona porque el problema es en otros lugares, con 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 solución temporal consiste en añadir el style.css para DisableCache directiva en la configuración del host virtual sección (o en la sección principal). The permanent solution is to update Apache. La solución permanente es la actualización de Apache. This is a documented mod_cache defect. Se trata de un documentado mod_cache defecto.
Thanks to Gracias a Firebug for helping me solve this problem. para mí ayudar a resolver este problema.
Note: Internet Explorer did render fine even with this error. Nota: Internet Explorer no hacen bien, incluso con este error.
Filed under Filed under Browser Navegador , Firefox , Headline News Headline News , How To Cómo , Pro Blogging Blogging Pro , Programming Programación , Web , Web 2.0 Web 2,0 , Web Services Web Services | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | este artículo |
Email this Article Enviar artículo
You may also like to read También puede leer |




July 3rd, 2007 at 8:50 am 3 de Julio, 2007 a las 8:50 am
Hello, I’m sorry to say that it appears that your style sheet is not being loaded when using Firefox. Hola, me siento decir que parece ser que su hoja de estilos no se está cargando cuando se utiliza Firefox.
July 3rd, 2007 at 12:44 pm 3 de Julio, 2007 a las 12:44 pm
Can you please clear the cache and see if the problem persists? ¿Puede por favor borrar la memoria caché y ver si el problema persiste?
July 17th, 2007 at 3:47 pm 17 de Julio, 2007 a las 3:47 pm
Thank you for pointing me in the right direction to solve this problem. Gracias por mí apuntando en la dirección correcta para resolver este problema. I figured it might have something to do with the cache. Me imaginé que podría tener algo que ver con el caché.
I think you have a slight error, though. Creo que usted tiene un ligero error, no obstante. I wasn’t able to find a DisableCache directive in the documentation, but I found CacheDisable No fui capaz de encontrar una DisableCache directiva en la documentación, pero he encontrado 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, Gracias,
— Ghodmode -- Ghodmode