melonenmann wrote:
> komisch ist das nur die *.js? nicht kompriert werden, die anderen
> *txt-files offensichtlich schon...
Ich leite das weiter.
melonenmann
20.03.12, 22:00
bei anderen hostern geht das ja auch - z.b. all-inkl.com (hab dort auch einen account) und die ladezeit der seiten ist um einiges kürzer. also das bringts schon,
yslow und pagespeed empfehlen auch die komprimierung...
komisch ist das nur die *.js? nicht kompriert werden, die anderen *txt-files offensichtlich schon...
das bringt ja nur mehr serverlast .... das bischen bandbreite die da gespart werden könnte...
ev. is das serverseitig deaktiviert....
melonenmann
18.03.12, 20:20
habe versucht, für meinen Blog die gzip aktivierung in der .htaccess zu aktivieren, leider ohne erfolg. alle analysprogramme (yslow, pagespeed etc..) melden dass die *.js scripts nicht komprimiert wurden. lässt sich das deflate modul bei ovh shared hosting paketen überhaupt aktivieren oder mach ich irgendwas falsch?
Meine .htaccess:
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
## EXPIRES CACHING ##
# DEFLATE compression
# Set compression for: html,txt,xml,js,css
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Set header information for proxies
Header append Vary User-Agent
# END DEFLATE
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
#ETag Configuration
FileETag none