#1 2010-08-28 17:33:48

Nagasaky
Člen
Registrován: 2010-08-28
Příspěvky: 4

Re: Nastavení gzip komprese přenášených dokumentů

Ahoj,
nějak se mi nedaří zprovoznit automatickou gzip kompresi přes .htaccess soubor. Mám v něm uvedeno:

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

Neví někdo, kde mám chybičku? RewriteEngine mám on. Kód je vzatý z postupů na nastaveni gzip komprese, ale stejne to nejede, ze by tu nebyla podporovana, i kdyz je omezeny trafik? Diky za pomoc

Offline

#2 2010-08-28 18:55:42

berkas1
Člen
Místo: Brno
Registrován: 2009-12-05
Příspěvky: 605
Web

Re: Nastavení gzip komprese přenášených dokumentů

jaký redakční systém ti tam běží?

Offline

#3 2010-08-28 20:38:55

JF
Endora rádce
Místo: ....nice u Plzně
Registrován: 2010-06-22
Příspěvky: 11,894

Re: Nastavení gzip komprese přenášených dokumentů

Netuším či to funguje. Ja to mám u seba na webe (viď obrázok v podpise) nastavené takto:

ExpiresActive on
ExpiresByType application/x-javascript A604800
ExpiresByType text/javascript A604800
ExpiresByType text/css A604800
ExpiresByType image/gif A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/jpg A604800
ExpiresByType image/p-jpeg A604800
ExpiresByType image/png A604800

<IfModule mod_deflate.c>
<FilesMatch "\\.(js|css|html|htm|php|xml|ico)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

Momentálny traffic na stránke mám takýto: 16,8MB / 30GB a to už je koniec mesiaca wink
Prípadne si môžete prejsť aj moje štatistiky stránky tu.


Ján Fačkovec - Endora.cz by Webglobe
Email, Web, Webadmin, Webmail, Nápověda, Ceník

Offline

Zápatí

Založeno na FluxBB | CZ a SK