コンテンツがgzip圧縮されているかチェック
本当にただの備忘録です。
Nginx で gzip on
にしたけど設定反映されているか shell で確認
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$1" == "" ]; then | |
echo -e "\n Not Found target path ! \n Execute again !" | |
exit; | |
fi | |
TARGET_PATH=$1 | |
curl -I -H 'Accept-Encoding: gzip,deflate' ${TARGET_PATH} 2>/dev/null | grep 'Content-Encoding' |
コンテンツがgzip圧縮されているかチェック
https://kenzo0107.github.io/2015/11/12/2015-11-13-check-gzip-compress/