Compression GZIP dans le .htaccess chez 1&1

WRInaute passionné
Bonjour,
J'ai parcouru le forum à la recherche d'infos sur le sujet et ai trouvé certains posts qui donnaient des solutions.
Néanmoins, après avoir tout tester, je me résigne à penser que 1&1 dans les packs de base Linux ne gère pas le GZIP.
Auriez vous des infos sur le sujet, je crains d'appeler la hotline pour ce genre de question..........
 
WRInaute passionné
Hot line contacté......pour rien ou presque
Il m'a dit de mettre le fichier PHP.ini ce qui était déjà fait sans résultat.
Sinon il est sec et va demander aux techniciens serveur.......
En revanche, il m'a confirma que MEME UN PACK BASIC SOUS LINUX permettait d'activer la compression GZIP via le .htaccess

Donc, il y a forcément une solution

Si vous avez des idées, je suis preneur :lol:
 
Nouveau WRInaute
Salut,
Oui, en effet la compression est un problème chez 1&1...
Je suppose que tu as créé un php.ini avec ce contenu :
PHP:
<span class="syntaxdefault"><br />zlib</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">output_compression </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> true<br />zlib</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">output_compression_level </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> 9<br /></span>
Que tes pages html sont compressées, mais pas les fichiers Js et Css...

C'est ça ?
 
WRInaute impliqué
Bonsoir,
Petite astuce que j'ai glanée je ne sais plus où : renommer les fichiers css ou js en .php (puis réécriture d'URL basique), et inclure en début de page :
Pour le css :
Code:
<?php
ob_start("ob_gzhandler");
header("Content-type: text/css; charset=UTF-8");
?>


Pour le js :
Code:
<?php
ob_start("ob_gzhandler");
header("Content-type: text/javascript; charset=UTF-8");
?>
 
WRInaute accro
Schwarzer Stern a dit:
renommer les fichiers css ou js en .php (puis réécriture d'URL basique), et inclure en début de page...
Oui directement demander leur interprétation par php : AddType x-mapp-php5 .css
 
Nouveau WRInaute
Pour limiter les appels php inutiles, tu peux gziper tes css/js. Ton hébergeur t'autorise le ssh donc c'est nickel.

En SSH
PHP:
<span class="syntaxdefault"><br />find </span><span class="syntaxkeyword">.</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">regex </span><span class="syntaxstring">".*\(css\|js\)$"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">exec bash </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">c </span><span class="syntaxstring">'echo Compress "{}" && gzip -c --best "{}" > "{}.gz"'</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">\;<br /></span><span class="syntaxdefault"></span>

Tu rajoutes ceci dans le htaccess
PHP:
<span class="syntaxdefault"><br /></span><span class="syntaxkeyword"><</span><span class="syntaxdefault">files </span><span class="syntaxkeyword">*.</span><span class="syntaxdefault">css</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gz</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">  AddType </span><span class="syntaxstring">"text/css"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gz<br />  AddEncoding gzip </span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gz<br />  Header set Cache</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Control </span><span class="syntaxstring">"max-age=604800, public"<br /></span><span class="syntaxdefault">  Header append Vary</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> Accept</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Encoding<br /></span><span class="syntaxkeyword"></</span><span class="syntaxdefault">files</span><span class="syntaxkeyword">><br /><</span><span class="syntaxdefault">files </span><span class="syntaxkeyword">*.</span><span class="syntaxdefault">js</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gz</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">  AddType </span><span class="syntaxstring">"text/javascript"</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gz<br />  AddEncoding gzip </span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gz<br />  Header set Cache</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Control </span><span class="syntaxstring">"max-age=604800, public"<br /></span><span class="syntaxdefault">  Header append Vary</span><span class="syntaxkeyword">:</span><span class="syntaxdefault"> Accept</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Encoding<br /></span><span class="syntaxkeyword"></</span><span class="syntaxdefault">files</span><span class="syntaxkeyword">><br /><br /><br /><br /></span><span class="syntaxdefault">RewriteEngine On<br />RewriteBase </span><span class="syntaxkeyword">/<br /><br /><br /></span><span class="syntaxdefault">ReWriteCond </span><span class="syntaxkeyword">%{</span><span class="syntaxdefault">HTTP</span><span class="syntaxkeyword">:</span><span class="syntaxdefault">accept</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">encoding</span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> gzip<br />RewriteCond </span><span class="syntaxkeyword">%{</span><span class="syntaxdefault">HTTP_USER_AGENT</span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">!</span><span class="syntaxdefault">Safari<br />ReWriteCond </span><span class="syntaxkeyword">%{</span><span class="syntaxdefault">REQUEST_FILENAME</span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">!^.+\.</span><span class="syntaxdefault">gz</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">RewriteCond </span><span class="syntaxkeyword">%{</span><span class="syntaxdefault">REQUEST_FILENAME</span><span class="syntaxkeyword">}.</span><span class="syntaxdefault">gz </span><span class="syntaxkeyword">-</span><span class="syntaxdefault">f<br />RewriteRule </span><span class="syntaxkeyword">^(.+)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">$</span><span class="syntaxdefault">1.gz </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">QSA</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">L</span><span class="syntaxkeyword">]<br /><br /></span><span class="syntaxdefault">RewriteCond </span><span class="syntaxkeyword">%{</span><span class="syntaxdefault">HTTP_USER_AGENT</span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> Safari<br />RewriteRule </span><span class="syntaxkeyword">(.*)\.</span><span class="syntaxdefault">css$ zip</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">php</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">file</span><span class="syntaxkeyword">=$</span><span class="syntaxdefault">1.css </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">L</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">RewriteCond </span><span class="syntaxkeyword">%{</span><span class="syntaxdefault">HTTP_USER_AGENT</span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> Safari<br />RewriteRule </span><span class="syntaxkeyword">(.*)\.</span><span class="syntaxdefault">js$ zip</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">php</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">file</span><span class="syntaxkeyword">=$</span><span class="syntaxdefault">1.js </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">L</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault"></span>

Enfin, tu crées un fichier zip.php pour gérer le cas Safari
PHP:
<span class="syntaxhtml"><br /><span class="syntaxdefault"><?php<br />$file </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> $_GET</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'file'</span><span class="syntaxkeyword">];<br /><br /></span><span class="syntaxdefault">$etag </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> md5_file</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$file</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> <br />$last_modified_time </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> filemtime</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$file</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> <br />header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Last-Modified: "</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gmdate</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"D, d M Y H:i:s"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault"> $last_modified_time</span><span class="syntaxkeyword">).</span><span class="syntaxstring">" GMT"</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> <br />header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Etag: </span><span class="syntaxdefault">$etag</span><span class="syntaxstring">"</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> <br /><br /><br />$mime </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> finfo_file</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">finfo_open</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">FILEINFO_MIME_TYPE</span><span class="syntaxkeyword">),</span><span class="syntaxdefault"> $file</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'Content-Type: '</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">$mime</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> <br /><br />header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Cache-Control: must-revalidate"</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">$offset </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> 60 </span><span class="syntaxkeyword">*</span><span class="syntaxdefault"> 60 </span><span class="syntaxkeyword">*</span><span class="syntaxdefault">24</span><span class="syntaxkeyword">*</span><span class="syntaxdefault">365 </span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> </span><span class="syntaxcomment">// ou moins<br /></span><span class="syntaxdefault">$ExpStr </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"Expires: "</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">gmdate</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"D, d M Y H:i:s"</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">time</span><span class="syntaxkeyword">()</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">+</span><span class="syntaxdefault"> $offset</span><span class="syntaxkeyword">).</span><span class="syntaxstring">" GMT"</span><span class="syntaxkeyword">;<br /></span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$ExpStr</span><span class="syntaxkeyword">);<br /></span><span class="syntaxdefault">if </span><span class="syntaxkeyword">(@</span><span class="syntaxdefault">strtotime</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'HTTP_IF_MODIFIED_SINCE'</span><span class="syntaxkeyword">])</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $last_modified_time </span><span class="syntaxkeyword">||</span><span class="syntaxdefault"> <br />        trim</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$_SERVER</span><span class="syntaxkeyword">[</span><span class="syntaxstring">'HTTP_IF_NONE_MATCH'</span><span class="syntaxkeyword">])</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> $etag</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{</span><span class="syntaxdefault"> <br />        header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"HTTP/1.1 304 Not Modified"</span><span class="syntaxkeyword">);</span><span class="syntaxdefault"> <br />    exit</span><span class="syntaxkeyword">;</span><span class="syntaxdefault"> <br /></span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> <br /><br />if </span><span class="syntaxkeyword">((</span><span class="syntaxdefault">ini_get</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'zlib.output_compression'</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">!=</span><span class="syntaxdefault"> true</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">&&</span><span class="syntaxdefault"> function_exists</span><span class="syntaxkeyword">(</span><span class="syntaxstring">'ob_gzhandler'</span><span class="syntaxkeyword">))</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">ob_start</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"ob_gzhandler"</span><span class="syntaxkeyword">);<br />}<br /></span><span class="syntaxdefault">echo </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">file_get_contents </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$file</span><span class="syntaxkeyword">));<br /></span><span class="syntaxdefault">?><br /></span></span>

Tu pourras te servir de ce fichier pour les autres extensions non compressées comme les fonts
PHP:
<span class="syntaxdefault"><br />RewriteRule </span><span class="syntaxkeyword">(.*)\.</span><span class="syntaxdefault">woff zip</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">php</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">file</span><span class="syntaxkeyword">=$</span><span class="syntaxdefault">1.woff </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">L</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">RewriteRule </span><span class="syntaxkeyword">(.*)\.</span><span class="syntaxdefault">otf zip</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">php</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">file</span><span class="syntaxkeyword">=$</span><span class="syntaxdefault">1.otf </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">L</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault">RewriteRule </span><span class="syntaxkeyword">(.*)\.</span><span class="syntaxdefault">svg zip</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">php</span><span class="syntaxkeyword">?</span><span class="syntaxdefault">file</span><span class="syntaxkeyword">=$</span><span class="syntaxdefault">1.svg </span><span class="syntaxkeyword">[</span><span class="syntaxdefault">L</span><span class="syntaxkeyword">]<br /></span><span class="syntaxdefault"></span>

Il y a peut-être une meilleure solution, d'autant qu'il faut penser à refaire un gzip à chaque modification des fichiers, mais ça économise un max les perfs.

Bonne chance !
 
WRInaute passionné
Merci pour toutes ces réponses.
Je vais passer aux essais

En attentant, voici le mail contradictoire que j'ai reçu de 1& :
"Nous vous informons qu'il n'est pas possible d'activer la fonction Gzip sur votre contrat d'hébergement mutualisé.

Seul, la mise en place de cette fonction sur un contrat dit ROOT (Serveur dédié) pourrait être fonctionnelle."
 
WRInaute passionné
concombre a dit:
Salut,
Oui, en effet la compression est un problème chez 1&1...
Je suppose que tu as créé un php.ini avec ce contenu :
PHP:
<span class="syntaxdefault"><br />zlib</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">output_compression </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> true<br />zlib</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">output_compression_level </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> 9<br /></span>
Que tes pages html sont compressées, mais pas les fichiers Js et Css...

C'est ça ?

Meme pas le HTML.......
 
Nouveau WRInaute
Pour le html, ça doit marcher.
Tu as mis quoi pour la compression Gzip dans le htaccess ?
PHP:
<span class="syntaxdefault"><br /></span><span class="syntaxkeyword"><</span><span class="syntaxdefault">IfModule mod_gzip</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">c</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">    mod_gzip_on       Yes<br />    mod_gzip_dechunk  Yes<br />    mod_gzip_minimum_file_size 512<br />    mod_gzip_maximum_file_size 1000000<br />    mod_gzip_item_include file </span><span class="syntaxkeyword">\.</span><span class="syntaxdefault">js</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_exclude file </span><span class="syntaxkeyword">\.(</span><span class="syntaxdefault">gz</span><span class="syntaxkeyword">|</span><span class="syntaxdefault">zip</span><span class="syntaxkeyword">|</span><span class="syntaxdefault">xsl</span><span class="syntaxkeyword">)$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">html</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">plain</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">image</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">icon</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">httpd</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">unix</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">directory</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">javascript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">javascript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">javascript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">js</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">ecmascript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">ecmascript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">vbscript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">fluffscript</span><span class="syntaxkeyword">$<br /></span><span class="syntaxdefault">    mod_gzip_item_include mime </span><span class="syntaxkeyword">^</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">css</span><span class="syntaxkeyword">$<br /></</span><span class="syntaxdefault">IfModule</span><span class="syntaxkeyword">><br />&nbsp;</span><span class="syntaxdefault"></span>

Teste là http://www.gidnetwork.com/tools/gzip-test.php , ça évite de scruter les requêtes. J'ai un mutualisé chez eux et ça fonctionne.
 
WRInaute passionné
Merci

J'ai mis ton code et laissé le php.ini
Mais toujours rien
Voilà le résultat sur le site de test que tu m'as indiqué

Web page compressed? No
Compression type? none
Size, Markup (bytes) 31,662
Size, Compressed (bytes) 31,662
Compression % 0.0
 
Nouveau WRInaute
Rajoute au cas où le deflate, même si normalement 1&1 ne le prend pas sur les mutualisés. Autrement je ne sais pas. Sur le mien ça marche...

PHP:
<span class="syntaxdefault"><br /></span><span class="syntaxkeyword"><</span><span class="syntaxdefault">ifmodule&nbsp;mod_deflate</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">c</span><span class="syntaxkeyword">><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">SetOutputFilter&nbsp;DEFLATE<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxcomment">#&nbsp;Compress&nbsp;HTML,&nbsp;CSS,&nbsp;JavaScript,&nbsp;Text,&nbsp;XML&nbsp;and&nbsp;fonts<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">javascript<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">rss</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">xml<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">vnd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">ms</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">fontobject<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">font<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">font</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">opentype<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">font</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">otf<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">font</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">truetype<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">font</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">ttf<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">javascript<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">xhtml</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">xml<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;application</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">xml<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;font</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">opentype<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;font</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">otf<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;font</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">ttf<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;image</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">svg</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">xml<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;image</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">icon<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">css<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">html<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">javascript<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">plain<br />&nbsp;&nbsp;&nbsp;&nbsp;AddOutputFilterByType&nbsp;DEFLATE&nbsp;text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">xml<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxcomment">#&nbsp;Remove&nbsp;browser&nbsp;bugs&nbsp;(only&nbsp;needed&nbsp;for&nbsp;really&nbsp;old&nbsp;browsers)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="syntaxdefault">BrowserMatch&nbsp;</span><span class="syntaxkeyword">^</span><span class="syntaxdefault">Mozilla</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">4&nbsp;gzip</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">only</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">html<br />&nbsp;&nbsp;&nbsp;&nbsp;BrowserMatch&nbsp;</span><span class="syntaxkeyword">^</span><span class="syntaxdefault">Mozilla</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">4</span><span class="syntaxkeyword">\</span><span class="syntaxdefault">.0</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">678</span><span class="syntaxkeyword">]&nbsp;</span><span class="syntaxdefault">no</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">gzip<br />&nbsp;&nbsp;&nbsp;&nbsp;BrowserMatch&nbsp;</span><span class="syntaxkeyword">\</span><span class="syntaxdefault">bMSIE&nbsp;</span><span class="syntaxkeyword">!</span><span class="syntaxdefault">no</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">gzip&nbsp;</span><span class="syntaxkeyword">!</span><span class="syntaxdefault">gzip</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">only</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">text</span><span class="syntaxkeyword">/</span><span class="syntaxdefault">html<br />&nbsp;&nbsp;&nbsp;&nbsp;Header&nbsp;append&nbsp;Vary&nbsp;User</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">Agent&nbsp;env</span><span class="syntaxkeyword">=!</span><span class="syntaxdefault">dont</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">vary&nbsp;<br /></span><span class="syntaxkeyword"></</span><span class="syntaxdefault">ifmodule</span><span class="syntaxkeyword">><br />&nbsp;</span><span class="syntaxdefault"></span>
 
WRInaute passionné
Finalement, le support m'a indiqué que mon pack ne permettait pas de le faire et me conseille donc..........de changer de pack :lol:
 
Discussions similaires
Haut