0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

さくらサーバーGZIP圧縮を有効にすると「PageSpeed Insights」が100点になった!

Last updated at Posted at 2021-06-23

さくらレンタルサーバーのHTMLサイトのレスポンスが遅い!
原因はサーバーのGZIP圧縮が効いていないことです。

mod_deflateを使って圧縮します。

.htaccess
<IfModule mod_deflate.c>
 SetOutputFilter DEFLATE
 AddOutputFilterByType DEFLATE text/html
 AddOutputFilterByType DEFLATE text/css
 AddOutputFilterByType DEFLATE application/x-javascript
 AddOutputFilterByType DEFLATE application/javascript
 AddOutputFilterByType DEFLATE application/x-httpd-php
</IfModule>

引用元:GZIP圧縮が効かない「さくらのサーバー」

対策を施して「PageSpeed Insights」にて確認したところ、スコアが満点になっていました。
gzip3.jpg
ワードプレスではインストール時にGZIP圧縮が有効になるため、この作業は不要です。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?