Mẹo nhỏ để nén ảnh hãy sử dụng công cụ https://imagecompressor.com/vi/
Nói một cách khác đây là thủ thuật tạo bộ nhớ đệm Gzip cho blogspot của bạn bằng cách tối ưu các url JS hay CSS của một bên thứ ba nào đó chẳng hạng như : Google Adsense, Google Analytics ...
Các bạn tìm đến thẻ <head> thường nằm ở dòng thứ 4 hoặc 5 trong theme của các bạn và thêm vào dưới nó đoạn code sau :
<include expiration='7d' path='*.css'/>Sau khi thêm vào thì các bạn có thể lưu mẫu lại nhé.
<include expiration='7d' path='*.js'/>
<include expiration='3d' path='*.gif'/>
<include expiration='3d' path='*.jpeg'/>
<include expiration='3d' path='*.jpg'/>
<include expiration='3d' path='*.png'/>
Ngoài ra các bạn có thể thực hiện cho website bằng mã nguồn wordpress của mình bằng cách thêm đoạn code sau vào file .htaccess
## EXPIRES CACHING ##Ngoài những phần các bạn đã tối ưu ở trên rồi thì còn những url bundle widget mặc định tạo ra bởi Blogger cũng gay trở ngại cho website của bạn với PageSpeed.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##
Tìm đến
<head>Thay bằng
<head>Tìm đến
<b:skin><![CDATA[Thay bằng
<style type="text/css">Tìm đến
<!-- /*<b:skin><![CDATA[*/]]></b:skin>
<style type='text/css'>
]]></b:skin>Thay bằng
</style>Tìm đến
</head>Thay bằng
</head><!--<head/>-->Tìm đến
</body>Thay bằng
<!--</body>--></body>Tìm đến
<html>Thay Bằng
<HTML expr:dir='data:blog.languageDirection'>Tìm đến
</html>Thay bằng
</HTML>Sau đó bấm lưu mẫu của các bạn lại một tuần sau các bạn có thể kiểm tra lại blogspot của các bạn với PageSpeed sẽ thấy sự khác biệt nhé.