Wednesday, April 27, 2011

Enable Compression and Browser caching Solved

php_value output_handler ob_gzhandler


mod_gzip_on yes
mod_gzip_dechunk yes
mod_gzip_keep_workfiles No
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 1002
mod_gzip_maximum_file_size 1000000
mod_gzip_maximum_inmem_size 1000000
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.css$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["


    AddOutputFilterByType DEFLATE text/html text/css application/x-javascript text/plain text/xml image/x-icon


#Begin Expiration 1 week

        Header unset Etag
        Header set Cache-control "public, max-age=604800"
     

No comments:

Post a Comment