greenlaw110 / greenscript

A tool help web developers manage javascript/css rendering, including minimize and dependence management
42 stars 24 forks source link

No gZip compression in 1.2.8b #59

Closed topherez closed 12 years ago

topherez commented 12 years ago

I've tried all the sample applications (as well as my own) and have found that the files are not being compressed. I also noticed that the file is not being written to the 'gs' directory. So, I have two questions:

  1. Are there any gZip settings I need to enable/check on the host side (running Apache locally)?
  2. I've run chmod -R 777 gs just to make sure the folder permissions aren't the issue. Is there anything else I need to check?
topherez commented 12 years ago

BTW, minification works, and the paths are being returned correctly, e.g. http://localhost:9000/public/gs/e20d84d6-0990-3212-974c-47a03578e1d3.js

greenlaw110 commented 12 years ago

I think there is misunderstanding to the terms used here. Compression/minimizing are all used to indicate that the js/css files been processed literally so that they are:

  1. redundant space get removed, variable/methods might be renamed with short identifiers
  2. merged together into one file

However these processing are only effect on "prod" mode. Even at "prod" mode, 'gs' folder might be empty if you choose to compress in memory.

There is nothing about gzip setting. If you need gzip, please go to http://www.playmodules.net/module/7

On Wed, Aug 8, 2012 at 2:48 AM, topherez notifications@github.com wrote:

BTW, minification works, and the paths are being returned correctly, e.g. http://localhost:9000/public/gs/e20d84d6-0990-3212-974c-47a03578e1d3.js

— Reply to this email directly or view it on GitHubhttps://github.com/greenlaw110/greenscript/issues/59#issuecomment-7559383.

topherez commented 12 years ago

I realized that after I posted this. Compression ≠ gZip. Thanks for clarifying.