mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-26 05:27:03 +00:00
13 lines
452 B
Plaintext
13 lines
452 B
Plaintext
Options +FollowSymLinks
|
|
|
|
AddEncoding x-gzip .gz
|
|
AddType text/plain .gz
|
|
|
|
RewriteEngine on
|
|
|
|
# These conditions slow down the requests significantly. We can probably assume they're always true.
|
|
# We should ensure the gzipped version always exists if we include this .htaccess. All supported browsers accept gzip encoding.
|
|
#RewriteCond %{REQUEST_FILENAME}.gz -f
|
|
#RewriteCond %{HTTP:Accept-Encoding} gzip
|
|
RewriteRule ^(.*\.(sj|js))$ %{REQUEST_URI}/../$1.gz
|