MENUCLOSE
twitter ツイッターfeedlyRSS

オンスタでは、オンラインで学習するために役立つコンテンツを掲載しています。そのほか、UdemyをはじめとしたEラーニングサービスの紹介も行っています。

オンスタ | オンラインで学習するための近道になるサイト
【webサイト高速化】.htaccessに貼り付けるだけで表示速度改善!(exipires,deflate)

【webサイト高速化】.htaccessに貼り付けるだけで表示速度改善!(exipires,deflate)

公開日:2019年07月12日
最終更新日:2019年07月12日
オンスタ運営
ホーム > スニペット > 【webサイト高速化】.htaccessに貼り付けるだけで表示速度改善!(exipires,deflate)

Warning: Undefined variable $_cat_enginieer_flag in /home/growgroup/online-study.jp/public_html/wp-content/themes/online-study-wp/views/object/components/related-posts-inline.php on line 37
このエントリーをはてなブックマークに追加
【PR】Udemyならスマホでもタブレットでも、いつでも気軽に学べます。
以下を.htaccess有効化の箇所に貼るだけ!webサイトの表示速度が気になる時はお試しください。 ※mod_expires、mod_deflateが有効化の時に使えます!
<IfModule mod_expires.c>
ExpiresActive On
# ExpiresDefault "access plus 2592000 seconds"
# ExpiresByType text/html "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/x-icon "access plus 2590000 seconds"
ExpiresByType text/css "access plus 2590000 seconds"
ExpiresByType text/javascript "access plus 2590000 seconds"
ExpiresByType application/x-javascript "access plus 2590000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 25920000 seconds"
</IfModule>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|ico)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI _\.utxt$ no-gzip

# DeflateCompressionLevel 9
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
</IfModule>
 
【PR】Udemyならスマホでもタブレットでも、いつでも気軽に学べます。

Udemyを実際に体験した方の感想記事もぜひご覧ください♪

web制作者にオススメのオンライン学習サイト「Udemy」

世界最大級のコースがラインナップ!電子書籍サイト「Udemy」

世界最大級のコースがラインナップ!オンライン学習サイト「Udemy」

「Udemy」ではいつでもどんなトピックでも、専門家が教える何千ものコースを用意されており、無料で学べるコースも多数あります。もうちょっと勉強したいな。スキルアップしたいな。と思ったら是非チェックしてみてください。