Author Topic: exclude directory from being compressed  (Read 640 times)

Offline NetComrade

  • Contributor
  • *
  • Posts: 1
  • Karma: 0
exclude directory from being compressed
« on: March 17, 2009, 04:23:52 PM »
IE6 apparently has issues compressing and flash
We already had a rule excluding swf, but there were some other files that need to be excluded.
URL is

http://bla.bla.bla.com/dir1/dir2/dir3/flash/*

more ns.conf|egrep 'swf|flash'
add policy expression ns_ext_swf "URL == /*.swf"
add policy expression ns_url_path_flash "URL == /*/flash/*"
add cmp policy ns_nocmp_swf -rule "ns_ext_swf || ns_url_path_flash" -resAction NOCOMPRESS
bind lb vserver "Compression Vserver" -policyName ns_nocmp_swf
bind cmp global ns_nocmp_swf

After I added add policy expression ns_url_path_flash "URL == /*/flash/*", I did not see any hits on /flash/ expression