No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Vous devez être membre et vous identifier pour publier un article.
Les visiteurs peuvent toutefois commenter chaque article par une réponse.

[Apache] Mauvais MIME type pour les CSS

Astuces de l’Infobrol (Développement)Article publié le 10/01/2005 15:33:36


Il arrive parfois que, malgré les droits correctement définis, Apache envoie les feuilles de style CSS avec le type MIME text/plain au lieu de text/css. Ce comportement ne pose généralement pas de problèmes, sauf quand le DOCTYPE de la page est XHTML 1.0 Strict...

Afin d'éviter ce genre de désagrément, voici la marche à suivre:

Editez le fichier mime.conf dans le dossier des fichiers de configuration d'Apache (Souvent /etc/httpd/conf).
Ajoutez à la fin de ce fichier la ligne suivante :

text/css css


Redémarrez Apache, puis forcez votre navigateur à rafraîchir complètement la page HTML (CTRL+SHIFT+R avec Mozilla).

Voilà de belles feuilles de styles appliquées à vos pages ;-)

Avatar :: Akira Sato Un article de Akira SatoModifié 1 fois. (dernière modification le 10/01/2005 15:33:56 par Akira Sato)



Source : indéterminée


Sélection, tri et recherche d'articles
FILTRER :
TRIER :1er critère : 2e critère :
CHERCHER : Dans les titres Dans le contenu


[Afficher les liens en fonction des critères du formulaire ci-dessus]

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 13/09/2004, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/ast-rf-155.html/

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.