I see this on the admin page

Create .gz files
All aggregated files can be pre-compressed into a .gz file and served from Apache. This is faster then gzipping the file on each request.

if I already have js aggregation selected on the performance page, why is the above needed? Are things just being gzipped again? Or is this somehow doing it before it is needed as part of a cron job perhaps?

Comments

mikeytown2’s picture

  • If I already have js aggregation selected on the performance page, why is the above needed?

Gzip will do lossless compression of the aggregate so it will be downloaded faster. Some web server configurations can not take advantage of .gz files so this can be turned off as gzip does take some CPU cycles.

  • Are things just being gzipped again?

Depends on the web server configuration. If the web server does not take advantage of .gz files then every time the aggregate is downloaded it will be gzipped again by the web server (most likely). The out of the box .htaccess configuration of Drupal for Apache will take advantage of .gz files.

  • Or is this somehow doing it before it is needed as part of a cron job perhaps?

AdvAgg & Core will do gzip file compression at the same time as the file is saved; 2 files get saved, an uncompressed version and a compressed one (gzip). No gzipping of aggregates happens on cron.

Core has an option to disable gzip for core CSS/JS aggregation.
http://drupalcode.org/project/drupal.git/blob/refs/heads/7.x:/sites/defa... I've done something similar in AdvAgg. Gzip is on by default but it can be turned off if needed.

More info on gzip https://developers.google.com/speed/articles/gzip

mikeytown2’s picture

Status: Active » Fixed

Marking this issue as fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.