@@ -5,7 +5,7 @@ |
#########
|
# if your server has the module mod_rewrite
|
# you can use this, to route certain links to certain pages
|
-# below are some examples
|
+# below are 2 examples |
# this works similiar to Bitweaver's prettyURLs ...
|
# the downside:
|
# you can't anymore have directories (packages) called "contact/" or "privacy/":
|
|
|
@@ -41,12 +41,12 @@ |
# if your server has the module mod_deflate
|
# with this, you can GZIP compress all text-based content
|
# and gain great performance
|
-# if this does work, disable Bitweaver's GZIP-compression setting in Admin > Kernel
|
+# if this is used, Bitweaver's GZIP-compression in Admin > Kernel should be disabled |
# otherwise the content might be compressed more than once which might lead to errors
|
-# this compression does not show up in your "Server Info" module, even if it is working
|
+# this compression does not show up in Bitweaver's "Server Info" module |
#
|
<IfModule mod_deflate.c>
|
- <FilesMatch "\.(css|js|x?html?|php)$">
|
+ <FilesMatch "\.(js|css|php|eot|ttf|otf|svg)$"> |
SetOutputFilter DEFLATE
|
</FilesMatch>
|
</IfModule>
|
|
|
@@ -74,7 +74,11 @@ |
#
|
<IfModule mod_headers.c>
|
|
- Header unset Pragma
|
+ # "unset Pragma" needs a lot of testing |
+ # it does not always work well between the chunks that |
+ # Registered/Admin versus Anonymous are allowed to see |
+ # |
+ # Header unset Pragma |
|
<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">
|
Header set Cache-Control "max-age=31536000, public"
|
|
|
@@ -104,6 +108,7 @@ |
# ExpiresActive On
|
# ExpiresDefault "access plus 1 seconds"
|
# ExpiresByType image/x-icon "access plus 1 year"
|
+# ExpiresByType image/ico "access plus 1 year" |
# ExpiresByType image/jpeg "access plus 1 year"
|
# ExpiresByType image/png "access plus 1 year"
|
# ExpiresByType image/gif "access plus 1 year"
|
|
|
@@ -184,6 +189,7 @@ |
|
{/code}
|
|
+Most of above settings are written with Apache 2+ in mind. Also, depending on higher level settings in Apache's as well as PHP's config files, some of the above settings might not be allowed (and produce a "Server Error 500"). |
|
! Test results
|
|
|
|