Hello

I tried to install Drupal template. Installation was completed without problems althought there is an issue with gzip. It is possible that I ask about obvious things but I planned to just copy website and simply edit the content - I didn't plan advanced code changes.

I was adviced by the host to change code as below to make the website work with gzip on his servers properly:

1. Static content - added to .htaccess

Location /*.css
Header set Content-Encoding "gzip"
:Location
2. Dynamic content - in php file that gives the compressed content

<?php
ob_start
(); //ON
?>

test gzip

test gzip

<?php
print_gzipped_output
();

function
print_gzipped_output()
{
$contents = ob_get_clean();
header('Content-Encoding: gzip');
print(
"\x1f\x8b\x08\x00\x00\x00\x00\x00");
$contents = gzcompress($contents, 9);
print(
$contents);
}
?>

So I understand that I need to remove from .htaccess before?
#
# Serve gzip compressed CSS files if they exist and the client accepts gzip.
# RewriteCond %{HTTP:Accept-encoding} gzip
# RewriteCond %{REQUEST_FILENAME}\.gz -s
# RewriteRule ^(.*)\.css $1\.css\.gz [QSA]

# Serve gzip compressed JS files if they exist and the client accepts gzip.
# RewriteCond %{HTTP:Accept-encoding} gzip
# RewriteCond %{REQUEST_FILENAME}\.gz -s
# RewriteRule ^(.*)\.js $1\.js\.gz [QSA]

# Serve correct content types, and prevent mod_deflate double gzip.
# RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
# RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]

#
# Serve correct encoding type.
# Header set Content-Encoding gzip
# Force proxies to cache gzipped & non-gzipped css/js files separately.
# Header append Vary Accept-Encoding
#
#
#

Has anyone tried that solution? Does it work?

If you know good hosting service where Drupal with gzip can bye applied without additional code changes please let me know.