Compressed HTML makes your pages zippy
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
- apache
- , optimization
- , htaccess
- , performance
- , files
- , zippy
- , gzip
- , compress
- , compression
- , css
- , cache
- , code
- , linux
- , web
- , html
Bookmark History
Saved by 5 people (1 private), first by anonymouse user on 2007-01-18
- Alfredwesterveld on 2008-05-02 - Tags gzip , files , apache , htaccess , optimization , zippy , performance
- Andymurd on 2008-01-21 - Tags apache
- Kamyar on 2007-10-14 - Tags apache , htaccess , optimization , tips
- Cybe100777 on 2007-02-08 - Tags apache , cache , code , compression , css , gzip , html , linux , tips , web , performance , optimization , compress , htaccess
- Betech on 2007-01-18 - Tags apache , htaccess , imported:del.icio.us , optimization , performance
Public Sticky notes
RewriteEngine on
RewriteOptions Inherit
#Check to see if browser can accept gzip files.
ReWriteCond %{HTTP:accept-encoding} (gzip.*)
#make sure there's no trailing .gz on the url
ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$
#check to see if a .gz version of the file exists.
RewriteCond %{REQUEST_FILENAME}.gz -f
#All conditions met so add .gz to URL filename (invisibly)
RewriteRule ^(.+) $1.gz [L]
Highlighted by alfredwesterveld


Public Comment