+ Trả Lời Ðề Tài
kết quả từ 1 tới 3 trên 3
-
11-04-2016 03:46 AM #1
- Tham gia ngày
- Sep 2011
- Bài gởi
- 5,315
- Thanks
- 1,492
- Thanked 4,367 Times in 1,681 Posts
Cách để website của bạn có được PageSpeed Insights cao đến 97 - 98 điểm
Cách để website của bạn có được PageSpeed Insights cao đến 97 - 98 điểm.
Các bạn có thể test demo tại
https://developers.google.com/speed/pagespeed/insights/…
Thứ nhất hãy dán đoạn code này vào file .htaccess, ảnh sẽ được lưu cục bộ trên máy tính người dùng làm giảm tốc độ load trang.
Code:<IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css A31536000 ExpiresByType text/x-component A31536000 ExpiresByType application/x-javascript A31536000 ExpiresByType application/javascript A31536000 ExpiresByType text/javascript A31536000 ExpiresByType text/x-js A31536000 ExpiresByType text/html A3600 ExpiresByType text/richtext A3600 ExpiresByType image/svg+xml A3600 ExpiresByType text/plain A3600 ExpiresByType text/xsd A3600 ExpiresByType text/xsl A3600 ExpiresByType text/xml A3600 ExpiresByType video/asf A31536000 ExpiresByType video/avi A31536000 ExpiresByType image/bmp A31536000 ExpiresByType application/java A31536000 ExpiresByType video/divx A31536000 ExpiresByType application/msword A31536000 ExpiresByType application/vnd.ms-fontobject A31536000 ExpiresByType application/x-msdownload A31536000 ExpiresByType image/gif A31536000 ExpiresByType application/x-gzip A31536000 ExpiresByType image/x-icon A31536000 ExpiresByType image/jpeg A31536000 ExpiresByType application/json A31536000 ExpiresByType application/vnd.ms-access A31536000 ExpiresByType audio/midi A31536000 ExpiresByType video/quicktime A31536000 ExpiresByType audio/mpeg A31536000 ExpiresByType video/mp4 A31536000 ExpiresByType video/mpeg A31536000 ExpiresByType application/vnd.ms-project A31536000 ExpiresByType application/x-font-otf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType application/vnd.oasis.opendocument.database A31536000 ExpiresByType application/vnd.oasis.opendocument.chart A31536000 ExpiresByType application/vnd.oasis.opendocument.formula A31536000 ExpiresByType application/vnd.oasis.opendocument.graphics A31536000 ExpiresByType application/vnd.oasis.opendocument.presentation A31536000 ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000 ExpiresByType application/vnd.oasis.opendocument.text A31536000 ExpiresByType audio/ogg A31536000 ExpiresByType application/pdf A31536000 ExpiresByType image/png A31536000 ExpiresByType application/vnd.ms-powerpoint A31536000 ExpiresByType audio/x-realaudio A31536000 ExpiresByType image/svg+xml A31536000 ExpiresByType application/x-shockwave-flash A31536000 ExpiresByType application/x-tar A31536000 ExpiresByType image/tiff A31536000 ExpiresByType application/x-font-ttf A31536000 ExpiresByType application/vnd.ms-opentype A31536000 ExpiresByType audio/wav A31536000 ExpiresByType audio/wma A31536000 ExpiresByType application/vnd.ms-write A31536000 ExpiresByType application/font-woff A31536000 ExpiresByType application/vnd.ms-excel A31536000 ExpiresByType application/zip A31536000 </IfModule>
Nguồn Nguyễn Cường FB
Xem bài liên quan cùng danh mục:
- Căn hộ cho thuê giá rẻ với hồ bơi, giá chỉ 430$ 05/03/2018
- Căn hộ cho thuê giá rẻ quận Ngũ Hành Sơn 01/03/2018
- Nhà cho thuê trung tâm thành phố Đà Nẵng 27/02/2018
- Cho thuê căn hộ view biển Sơn Trà 08/02/2018
- Nhà cho thuê Ngũ Hành Sơn 05/02/2018
- Nhà cho thuê giá rẻ gần Hội An 02/02/2018
- Văn phòng cho thuê tại trung tâm thành phố 01/02/2018
- Nhà cho thuê 4 phòng ngủ view Sông Hàn 30/01/2018
- Nhà cho thuê giá rẻ tại chân cầu Cẩm Nam 29/01/2018
- Nhà cho thuê với 4 phòng ngủ gần sông 22/01/2018
****************Hãy cùng chia sẻ với bạn bè bằng cách****************Copy đường link dưới đây gửi đến bạn bè!
-
15-08-2016 02:58 PM #2
- Tham gia ngày
- Aug 2015
- Bài gởi
- 24
- Thanks
- 0
- Thanked 1 Time in 1 Post
Ðề: Cách để website của bạn có được PageSpeed Insights cao đến 97 - 98 điểm
Cái này áp udngj cho tất cả ngon ngữ phải không nhỉ
-
17-10-2016 11:41 PM #3
- Tham gia ngày
- Oct 2016
- Bài gởi
- 31
- Thanks
- 3
- Thanked 0 Times in 0 Posts
Ðề: Cách để website của bạn có được PageSpeed Insights cao đến 97 - 98 điểm
Nhưng nếu mình thay đổi hình ảnh thì user vẫn thấy hình cũ trên máy local của họ đúng không bạn?
Chịu chia tay sớm, HLV Wenger nhận khoản đền bù kếch xù từ Arsenal
22-04-2018, 11:08 PM in Chợ linh tinh - quảng cáo khác