Salve,
eseguendo il test su pagespeed mi dice di effettuare la compressione, allora come su altri miei siti modifico il .htaccess come indicato nel seguito. Ottengo da pagespeed l'ok per il desktop (le operazioni sono compiute con successo) ma da mobile il sito è bloccato. Qual è l'errore?
ecco l' .htaccess
Codice:# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # COMPRESSIONE DEFLATE <IfModule mod_deflate.c> # Impostazioni di compressione per: html,txt,xml,js,css AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript # Disattiva compressione per vecchi browser BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch bMSIE !no-gzip !gzip-only-text/html # Impostazioni intestazioni proxy Header append Vary User-Agent </IfModule> # FINE DEFLATE Header unset Pragma FileETag None Header unset ETag Header set Cache-Control "public" Header set Expires "Wed, 10 Dec 2014 05:00:00 GMT" Header set Cache-Control "max-age=172800, must-revalidate" Header unset Last-Modified # Caching -- mod_headers <IfModule mod_headers.c> # 1 Anno = 29030400s = Never Expires <filesMatch "\.(ico)$"> Header set Cache-Control "max-age=29030400, public" </filesMatch> # 1 Mese = 2419200s <filesMatch "\.(css|pdf|flv|jpg|jpeg|png|gif|swf)$"> Header set Cache-Control "max-age=2419200, public" </filesMatch> <FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$"> Header set Last-Modified "Wed, 11 Dec 2013 00:00:00 GMT" </FilesMatch> # 2.5 Giorni = 216000s <filesMatch "\.(js)$"> Header set Cache-Control "max-age=650000, private" </filesMatch> <filesMatch "\.(xml|txt)$"> Header set Cache-Control "max-age=216000, public, must-revalidate" </filesMatch> # 5 minuti = 300s <filesMatch "\.(html|htm)$"> Header set Cache-Control "max-age=300, private, must-revalidate" </filesMatch> # Disabilitare cache per script e altri file dinamici <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"> Header unset Cache-Control </FilesMatch> </IfModule> # Caching -- mod_expires <IfModule mod_expires.c> ExpiresActive On ExpiresDefault A604800 ExpiresByType image/x-icon A29030400 ExpiresByType application/pdf A2419200 ExpiresByType image/gif A2419200 ExpiresByType image/png A2419200 ExpiresByType image/jpg A2419200 ExpiresByType image/jpeg A2419200 ExpiresByType text/css A2419200 ExpiresByType application/x-javascript A216000 ExpiresByType text/javascript A216000 ExpiresByType text/plain A216000 ExpiresByType text/html A300 <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"> ExpiresActive Off </FilesMatch> </IfModule> # # av:php5-engine AddHandler av-php5 .php php_value post_max_size 20M php_value upload_max_filesize 20M php_value max_execution_time 60

LinkBack URL
About LinkBacks

