Permalink
Browse files

Better, as more bullet proof and faster solution for the IE7/Vista MH…

…TML caching bug the way http://www.aoao.org.cn/ suggested and Stoyan Stefanov writes about here: http://www.phpied.com/the-proper-mhtml-syntax/

Signed-off-by: Christian Schepp Schaefer <schaepp@gmx.de>
  • Loading branch information...
1 parent 284f60c commit b4f8d9756fe620048fcd28a40a81e1ccd303eab3 @Schepp committed Oct 3, 2010
Showing with 14 additions and 11 deletions.
  1. +14 −11 examples/example1/.htaccess
@@ -1,10 +1,15 @@
-
+#CSS-JS-Booster Start#################################################
#Turn ETagging off
FileETag none
-#Turn ETagging on for MHTML-file
-<FilesMatch ".*booster_mhtml\.php$">
+#Turn ETagging on for Booster PHP files
+<FilesMatch ".*booster_.+\.php$">
FileETag MTime Size
+
+#Give access even if webmaster has globally forbidden access
+Order deny,allow
+Allow from all
+Satisfy any
</FilesMatch>
#Force caching of some common files for some time in the browser's cache, to save bandwidth.
@@ -13,19 +18,16 @@ FileETag MTime Size
ExpiresActive On
ExpiresDefault "access plus 1 minutes"
ExpiresByType text/html "access plus 1 minutes"
- ExpiresByType text/css "access plus 1 months"
- ExpiresByType text/javascript "access plus 1 months"
- ExpiresByType text/plain "access plus 1 months"
- ExpiresByType application/x-javascript "access plus 1 months"
- ExpiresByType application/x-shockwave-flash "access plus 1 months"
+ ExpiresByType text/css "access plus 35 days"
+ ExpiresByType text/javascript "access plus 35 days"
+ ExpiresByType text/plain "access plus 35 days"
+ ExpiresByType application/x-javascript "access plus 35 days"
+ ExpiresByType application/x-shockwave-flash "access plus 35 days"
ExpiresByType image/gif "access plus 1 years"
ExpiresByType image/jpeg "access plus 1 years"
ExpiresByType image/jpg "access plus 1 years"
ExpiresByType image/png "access plus 1 years"
ExpiresByType image/x-icon "access plus 1 years"
- <FilesMatch ".*booster_mhtml\.php$">
- ExpiresActive Off
- </FilesMatch>
</IfModule>
#Alternative caching using Apache's "mod_headers", if it's installed.
@@ -39,3 +41,4 @@ Header set Cache-Control "max-age=2592000, public"
#Header set Cache-Control "max-age=0, public"
#</FilesMatch>
</IfModule>
+#CSS-JS-Booster End#################################################

0 comments on commit b4f8d97

Please sign in to comment.