gzip is failing for js / css files
Nid: 1417
drupal advagg モジュール使用時に、下記のメッセージ。
Status report (admin/reports/status)
Adv CSS/JS Agg - gzip gzip is failing for js files. The web servers configuration will need to be adjusted. In most cases make sure that the webroots .htaccess file still contains this section "Rules to correctly serve gzip compressed CSS and JS files". Also check in the readme, under Troubleshooting. Certain default web server configurations (nginx(link is external)) do not gzip HTTP/1.0 requests. If you are using cloudfront you will have to add metadata(link is external) to the .gz files. There are some other options if using cloudfront(link is external). Raw request info: stdClass Object ...
nginx設定ファイルに以下を追加
$ vi /etc/nginx/nginx.conf gzip_http_version 1.0; # default 1.1
$ sudo sh -c "nginx -t && nginx -s reload"
関連記事
- ‹ previous
- 2 of 2