1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-09 07:36:56 +02:00

+ mod_rewrite to sniff out old IEs. Renamed before.var to before.js.var

This commit is contained in:
Steve Clay
2008-05-27 00:17:15 +00:00
parent f4c3b6be24
commit 457ed43590
2 changed files with 10 additions and 11 deletions

View File

@@ -1,20 +1,15 @@
# turn off MultiViews if enabled # turn off MultiViews if enabled
#
Options -MultiViews Options -MultiViews
# For *.var requests, negotiate using type-map # For *.var requests, negotiate using type-map
#
AddHandler type-map .var AddHandler type-map .var
# use custom extensions so existing handlers for .gz/.Z # use custom extensions so existing handlers for .gz/.Z don't interfere
# do not interfere
#
AddEncoding x-gzip .zg AddEncoding x-gzip .zg
AddEncoding x-compress .zc AddEncoding x-compress .zc
AddEncoding deflate .zd AddEncoding deflate .zd
# Necessary to add charset while using type-map # Necessary to add charset while using type-map
#
AddType application/x-javascript;charset=utf-8 js AddType application/x-javascript;charset=utf-8 js
AddType text/css;charset=utf-8 css AddType text/css;charset=utf-8 css
@@ -27,15 +22,19 @@ AddType text/css;charset=utf-8 css
FileETag None FileETag None
# requires mod_expires # requires mod_expires
#
ExpiresActive On ExpiresActive On
#
# sets Expires and Cache-Control: max-age, but not "public" # sets Expires and Cache-Control: max-age, but not "public"
#
ExpiresDefault "access plus 1 year" ExpiresDefault "access plus 1 year"
# requires mod_headers # requires mod_headers
#
# adds the "public" to Cache-Control. # adds the "public" to Cache-Control.
#
Header set Cache-Control "public, max-age=31536000" 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]