Hello Stormbreaker,
[quote name=‘stormbreaker’]Hi thank you for the hints, the website is really faster now.
But I have a problem. I have some attachments (.pdf files mostly) and with the compression i’m not able anymore to open them or it requires more than 5 minutes to do it. I had to remove the gzip compression at the end of the day.
I had not the mod_deflate originally in Loaded Modules, but I followed the procedure and it worked.
Any idea?[/QUOTE]
Yes, I am stubborn:
[SIZE=“3”]A reliable web hosting company is necessary in business.[/SIZE]
[quote name=‘stormbreaker’]Hi thank you for the hints, the website is really faster now.
But I have a problem. I have some attachments (.pdf files mostly) and with the compression i’m not able anymore to open them or it requires more than 5 minutes to do it. I had to remove the gzip compression at the end of the day.
I had not the mod_deflate originally in Loaded Modules, but I followed the procedure and it worked.
Any idea?[/QUOTE]
Please, Stormbreaker, if you can afford it, choose another web hosting company. You are a new comer here, and you have a really stupid basic trouble. Believe me, to have NOT the mod_deflate is incredible in 2010!
Please, change for a reliable hosting company, otherwise, you will discourage quickly yourself.
*****
However, Stormbreaker, if “mod_deflate” is NOT enable, you can read this: Enabling gzip compression if mod_deflate is not enabled
*****
Seems your mod_deflate has been configured incorrectly. Please, ask help from your web hosting company.
Here is a fine configuration of deflate.conf (only root can be able to change it):
DeflateCompressionLevel 3
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE application/x-httpd-eruby
SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
So, Stormbreaker, you can test this into your “.htaccess”:
```php
SetOutputFilter DEFLATE
compress content with type html, text, js, and css
AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript text/xml image/svg+xml application/javascript application/x-javascript application/atom_xml application/rss+xml application/xml application/xhtml+xml application/x-httpd-php application/x-httpd-fastphp
Properly handle old browsers that do not support compression
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Explicitly exclude binary files from compression just in case
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI .rm$ no-gzip dont-vary
properly handle requests coming from behind proxies
Header append Vary User-Agent env=!dont-vary
```
Lee Li Pop