diff --git a/web/test/statics/.htaccess-dev b/web/test/statics/.htaccess-dev index 6324d6c..05a3715 100644 --- a/web/test/statics/.htaccess-dev +++ b/web/test/statics/.htaccess-dev @@ -1,20 +1,15 @@ # turn off MultiViews if enabled -# Options -MultiViews # For *.var requests, negotiate using type-map -# AddHandler type-map .var -# use custom extensions so existing handlers for .gz/.Z -# do not interfere -# +# use custom extensions so existing handlers for .gz/.Z don't interfere AddEncoding x-gzip .zg AddEncoding x-compress .zc AddEncoding deflate .zd # Necessary to add charset while using type-map -# AddType application/x-javascript;charset=utf-8 js AddType text/css;charset=utf-8 css @@ -27,15 +22,19 @@ AddType text/css;charset=utf-8 css FileETag None # requires mod_expires -# ExpiresActive On -# # sets Expires and Cache-Control: max-age, but not "public" -# ExpiresDefault "access plus 1 year" # requires mod_headers -# # adds the "public" to Cache-Control. -# Header set Cache-Control "public, max-age=31536000" + +# requires mod_rewrite +RewriteEngine On +RewriteBase /_3rd_party/minify/web/test/statics +# IE 5 and 6 are the only ones we really care about +RewriteCond %{HTTP_USER_AGENT} MSIE\ [56] +# but not if it's got the SV1 patch or is really Opera +RewriteCond %{HTTP_USER_AGENT} !(\ SV1|Opera) +RewriteRule ^(.*)\.var$ $1 [L] \ No newline at end of file diff --git a/web/test/statics/before.var b/web/test/statics/before.js.var similarity index 100% rename from web/test/statics/before.var rename to web/test/statics/before.js.var