<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[chi ha ragione? programmatore o hosting? su velocità sito gogle]]></title><description><![CDATA[<p dir="auto">ciao a tutti<br />
vi seguo da parecchio tempo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
<p dir="auto">Volevo chiedervi una piccola cosetta... ho realizzato un sito per annunci avvalendomi di un cms per annunci. Ho un collaboratore inglese che mi ha fatto l' ottimizzazione per il "pagespeed" di google, con css compressi e del codice java.</p>
<p dir="auto">Ora la velocità finale è 70/100 e mi aveva promesso almeno 85. Ora da la colpa al mio hosting perché dice che le librerie non funzionano!</p>
<p dir="auto">mod_expires.c<br />
mod_deflate.c<br />
mod_rewrite.c</p>
<p dir="auto">Ho chiesto all' hosting se il mio htaccess era corretto e loro mi confermano che htaccess è corretto e che le librerie funzionano. Ora vi chiedo, c' è un modo per testare ciò e vedere chi ha ragione? Da quanto ho capito il programmatore lo vede dal tool di googespeed ma non capisco dove perche io non vedo riferimenti</p>
<p dir="auto">grazie mille <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
<p dir="auto"><strong>Tipo</strong>:<br />
Altri</p>
]]></description><link>https://dev.connect.gt/topic/183021/chi-ha-ragione-programmatore-o-hosting-su-velocità-sito-gogle</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 13:28:03 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/183021.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Jan 2013 18:29:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to chi ha ragione? programmatore o hosting? su velocità sito gogle on Wed, 16 Jan 2013 08:34:34 GMT]]></title><description><![CDATA[<p dir="auto">In questo momento la versione .htaccess contiene le impostazioni del secondo blocco, giusto?</p>
<p dir="auto">Secondo me siamo sulla buona strada (76/100 per il tool online, 83/100 fatto tramite Firebug).<br />
Proverei ad aumentare la durata di .js e .css, modificando da</p>
<pre><code># Set up 2 Hour caching on commonly updated files
&lt;FilesMatch "\.(xml|txt|html|js|css)$"&gt;
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
&lt;/FilesMatch&gt;
</code></pre>
<p dir="auto">a</p>
<pre><code># Set up 1 week on commonly updated files
&lt;FilesMatch "\.(xml|txt|html|js|css)$"&gt;
ExpiresDefault A604800
Header append Cache-Control "public"
&lt;/FilesMatch&gt;
</code></pre>
<p dir="auto">ed in realtà a mio avviso si potrebbe anche rendere più lunga la scadenza, ma mi sono attenuto proporzionalmente a quanto era stato impostato per gli altri file.</p>
<p dir="auto">Il vero collo di bottiglia attuale della pagina (e quindi del punteggio) è però a mio avviso il fatto che le immagini relative agli annunci Premium vengono ridimensionate al volo dal browser, mentre dovresti cercare di servire miniature come fai per gli "Ultimi annunci".</p>
<p dir="auto">Utile infine provare a creare sprite css, ma questo lo lascerei come ultima cosa.</p>
<p dir="auto">Ci sono infine due file javascript che non vengono compressi:</p>
<p dir="auto">ads/modules/templatecodes/scripts/compressed.js<br />
ads/javascript/jquery/date_input/jquery.date_input.min.js</p>
<p dir="auto">ma non so dirti il perchè.</p>
<p dir="auto">Infine non so rispondere alla tua domanda iniziale, su chi abbia ragione, perchè come detto credo che in questo momento sia attiva la versione .htaccess non del programmatore.</p>
]]></description><link>https://dev.connect.gt/post/1105276</link><guid isPermaLink="true">https://dev.connect.gt/post/1105276</guid><dc:creator><![CDATA[bobo]]></dc:creator><pubDate>Wed, 16 Jan 2013 08:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to chi ha ragione? programmatore o hosting? su velocità sito gogle on Wed, 16 Jan 2013 00:31:35 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto"><strong>Bobo</strong></p>
<p dir="auto">Posso chiederti l'indirizzo del sito ed il contenuto di .htaccess?</p>
</blockquote>
<p dir="auto">certamente!! il sito è <a href="http://mercatinoracing.it" rel="nofollow ugc">mercatinoracing.it</a></p>
<p dir="auto">questo è il contenuto htaccess</p>
<pre><code>suPHP_ConfigPath /var/www/vhosts/mercatinoracing.it/httpdocs/php.ini


&lt;IfModule mod_expires.c&gt;
ExpiresActive on
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType image/x-icon "access plus 1 week"
ExpiresByType image/jpg "access plus 1 week"
ExpiresByType image/jpeg "access plus 1 week"
ExpiresByType image/gif "access plus 1 week"
ExpiresByType image/png "access plus 1 week"
ExpiresByType image/ico "access plus 1 week"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
&lt;/IfModule&gt;

AddDefaultCharset UTF-8

# BEGIN Gzip
&lt;IfModule mod_deflate.c&gt;
# Insert filters
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE image/svg+xml

# Drop problematic browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
&lt;/IfModule&gt;
# END Gzip

ErrorDocument 404 /ads/404.php

&lt;IfModule mod_rewrite.c&gt;
Options +FollowSymLinks
RewriteEngine On
RewriteBase /


#rewrite all non www pages

&lt;/IfModule&gt;
</code></pre>
<p dir="auto">Ho provato anche configurando htaccess tramite guida su questo sito, che allego qui</p>
<pre><code>suPHP_ConfigPath /var/www/vhosts/mercatinoracing.it/httpdocs/php.ini


# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0

# Set up caching on media files for 1 year (forever?)
&lt;FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$"&gt;
ExpiresDefault A29030400
Header append Cache-Control "public"
&lt;/FilesMatch&gt;

# Set up caching on media files for 1 week
&lt;FilesMatch "\.(gif|jpg|jpeg|png|swf)$"&gt;
ExpiresDefault A604800
Header append Cache-Control "public"
&lt;/FilesMatch&gt;

# Set up 2 Hour caching on commonly updated files
&lt;FilesMatch "\.(xml|txt|html|js|css)$"&gt;
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
&lt;/FilesMatch&gt;

# Force no caching for dynamic files
&lt;FilesMatch "\.(php|cgi|pl|htm)$"&gt;
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
&lt;/FilesMatch&gt;







AddDefaultCharset UTF-8

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
&lt;FilesMatch &amp;#8220;.(js|css|html|htm|php|xml)$&amp;#8221;&gt;
SetOutputFilter DEFLATE
&lt;/FilesMatch&gt;



ErrorDocument 404 /ads/404.php

&lt;IfModule mod_rewrite.c&gt;
Options +FollowSymLinks
RewriteEngine On
RewriteBase /


#rewrite all non www pages

&lt;/IfModule&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/post/1105283</link><guid isPermaLink="true">https://dev.connect.gt/post/1105283</guid><dc:creator><![CDATA[volponerosso]]></dc:creator><pubDate>Wed, 16 Jan 2013 00:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to chi ha ragione? programmatore o hosting? su velocità sito gogle on Tue, 15 Jan 2013 16:42:54 GMT]]></title><description><![CDATA[<p dir="auto">Posso chiederti l'indirizzo del sito ed il contenuto di .htaccess?</p>
]]></description><link>https://dev.connect.gt/post/1105275</link><guid isPermaLink="true">https://dev.connect.gt/post/1105275</guid><dc:creator><![CDATA[bobo]]></dc:creator><pubDate>Tue, 15 Jan 2013 16:42:54 GMT</pubDate></item></channel></rss>