- b2evolution CMS Support Forums
- b2evolution Support
- General Support
- How to Gzip in 3.3.3?
1 bradwest May 18, 2010 06:04
My b2evolution Version: Not Entered
I am kind of at a loss on what to do next.
I have Gzip enabled on the server. I have messed with the cashing in the admin panel.
The method that is the easiest and works on most everything is a fail also.
# Expire Header
<FilesMatch "\.(ico|jpg|jpeg|png|gif)$">
ExpiresDefault "access plus 2592000 seconds"
</FilesMatch>
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 2592000 seconds"
ExpiresByType text/html "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/ico "access plus 2592000 seconds"
ExpiresByType text/css "access plus 6048000 seconds"
ExpiresByType text/javascript "access plus 2160000 seconds"
ExpiresByType application/x-javascript "access plus 2160000 seconds"
</ifModule>
There must be some kind of out of the ordinary deal to enable Gzip.
All my searches here turn up some great info from days gone by.
Thanks in advance
Brad West