Closed (won't fix)
Project:
CSS Gzip
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
3 May 2009 at 03:51 UTC
Updated:
14 Mar 2012 at 01:01 UTC
Hi,
Has anyone tested it on lighttpd?
Comments
Comment #1
mikeytown2 commentedAFAIK it hasn't been tested on lighttpd. Here are the rules fully explained.
This tells the browser that all
css.gzfiles are gzipped and adds a mime type of text/css to css.gz files.In lighttpd this line (
ForceType text/css) would be something like this?I have no idea how to do (
AddEncoding x-gzip .gz) after reading the docs.The next one is the rewrite rules. IF NOT Safari && accepts gzip encoding && yourcssfile.css.gz exists THEN rewrite
*.cssto*.css.gz.In lighttpd the last line would be?
I have no idea how to do conditionals in lighttpd from the docs.
As of right now, lighttpd is unsupported. But if someone comes up with some rules, then I would be willing add it in.
Comment #2
aalemmar commentedThis module is not need on lighttpd. Reading the documentation, I've put these lines on my
lighttpd.confI also created the folder
/var/cache/lighttpd/compressand chowned it to the lighttpd user and group as configured on my Arch Linux, for Debian/Ubuntu the user and group ids should both be www-data.Now, every css ou javascript served is compressed and cached on
/var/cache/lighttpd/compress, the only con I've found is that lighttpd doesn't exclude old compressed files.Sorry for my poor English
Comment #3
mikeytown2 commentedDoes the compressed dir have a ba-zillion files in there? Apache will generate a different file for each HTTP_USER_AGENT (from what I hear) so thats why caching it via apache doesn't work so well.
Comment #4
mikeytown2 commentedDue to recent developments with the boost module; I sorta know how lighttpd works. I can use this as a guide
http://groups.drupal.org/node/22787
Comment #5
mikeytown2 commentedCSS Gzip will no longer be updated/supported. All future development is being done in the Advanced CSS/JS Aggregation module.