hello :comme vous pouvez le voir sur http://m-22.net les css et les js ne marchent absolument pas une fois compressés, alors évidemment j'obtient la note c sans css ni js!!!
si quelqu'un trouve la solution car je sèche grave
mon fichier htaccess
et mon fichier config.php de smartoptimizer
merci de vos futurs réponses
si quelqu'un trouve la solution car je sèche grave
mon fichier htaccess
Code:
<IfModule mod_expires.c>
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
ExpiresActive On
ExpiresDefault "access plus 10 years"
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*\.(js|css))$ smartoptimizer/?$1
<IfModule mod_expires.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(js|css|html?|xml|txt))$ smartoptimizer/?$1
</IfModule>
<IfModule !mod_expires.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico))$ smartoptimizer/?$1
</IfModule>
</IfModule>
<FilesMatch "\.(gif|jpg|jpeg|png|swf|css|js|html?|xml|txt|ico)$">
FileETag none
</FilesMatch>
et mon fichier config.php de smartoptimizer
Code:
<?php
/*
* SmartOptimizer Configuration File
*/
//base dir (a relative path to the base directory)
$settings['baseDir'] = '../';
//Encoding of your js and css files. (utf-8 or iso-8859-1)
$settings['charSet'] = 'utf-8';
//Show error messages if any error occurs (true or false)
$settings['debug'] = true;
//use this to set gzip compression On or Off
$settings['gzip'] = true;
//use this to set gzip compression level (an integer between 1 and 9)
$settings['compressionLevel'] = 1;
//these types of files will not be gzipped nor minified
$settings['gzipExceptions'] = array('gif','jpeg','jpg','png','swf');
//use this to set Minifier On or Off
$settings['minify'] = off;
//use this to set file concatenation On or Off
$settings['concatenate'] = true;
//separator for files to be concatenated
$settings['separator'] = ',';
//specifies whether to emebed files included in css files using the data URI scheme or not
$settings['embed'] = true;
//The maximum size of an embedded file. (use 0 for unlimited size)
$settings['embedMaxSize'] = 0; //5KB
//these types of files will not be embedded
$settings['embedExceptions'] = array('htc');
//to set server-side cache On or Off
$settings['serverCache'] = false;
//if you change it to false, the files will not be checked for modifications and always cached files will be used (for better performance)
$settings['serverCacheCheck'] = false;
//cache dir
$settings['cacheDir'] = 'cache/';
//prefix for cache files
$settings['cachePrefix'] = 'so_';
//to set client-side cache On or Off
$settings['clientCache'] = false;
//Setting this to false will force the browser to use cached files without checking for changes.
$settings['clientCacheCheck'] = false;
?>
merci de vos futurs réponses