Fix Google PageSpeed ​​“Serve Scaled Images” for Flexible Layout

My layout is responsive, so I need to have scaled images placed in the template, for example. when using mobile devices, span3of Boostrapcan take up a full line, so the width will be increased.

But on Google PageSpeed, this is flagged as a problem.

Is there a workaround or a better way to handle this?

+5
source share
1 answer

Did you enable gzip or deflate compression mode? This tells us because either we did not use the cache (browser or proxy). Write this in your header / .htaccess file.

<FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf|svg|pdf|flv|mp3)$">
<IfModule mod_expires.c>
 ExpiresActive on
 ExpiresDefault "access plus 1 month 2 days 3 hours" //example you can change it
 Header set Cache-Control "public"
</IfModule>
</FilesMatch>

, . Adaptive-Images, DNS .

, . 98 out 100 .

, . , .

+2

All Articles