LoginSignup
7
7

More than 5 years have passed since last update.

middleman-syncでgzipする

Last updated at Posted at 2015-08-05

sync.gzip_compression = true にすればgzipになりそうだけどならない。

コードを見ると最終的にAssetSyncがsyncしている。asset_syncのreferenceを見に行くと、.gzのものとそうでないものの両方を用意してあるとgzがuploadされると書いてある。

ので
build/cta/index.html.gzbuild/cta/index.html の両方を用意して実行したら

Uploading: build/cta/index.html.gz in place of cta/index.html saving 24.45%
Ignoring: cta/index.html.gz

というメッセージが出ててきてやっと Content-Encoding: gzip になりました。
FYI: @ngs

7
7
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
7
7