In Apache I'm used to doing this to get Apache to send a pre-compressed js
file when it's asked for javascript:
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
RewriteCond %{LA-U:REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
<files *.js.gz>
ForceType text/javascript
Header set Content-Encoding: x-gzip
</files>
This returns for *.js.gz when asked for *.js and sets the header
appropriately if found. Is there a way to do effectively the same thing in
Cherokee?
Sorry for the n00b question-- Mike
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee