Browse Source

Flag insensible à la casse et pragmas no-cache

Julien Vaubourg 12 years ago
parent
commit
434d491ff6
2 changed files with 8 additions and 1 deletions
  1. 7 0
      fdnTopicAddBot/07-fdn
  2. 1 1
      fdnTopicAddBot/fdn-accbot.pl

+ 7 - 0
fdnTopicAddBot/07-fdn

@@ -5,6 +5,13 @@
 
         UseCanonicalName Off
 
+        <ifModule mod_headers.c>
+                Header unset ETag
+                Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
+                Header set Pragma "no-cache"
+                Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
+        </ifModule>
+
         <Directory /var/www/fdn>
                 Order allow,deny
                 allow from all

+ 1 - 1
fdnTopicAddBot/fdn-accbot.pl

@@ -35,7 +35,7 @@ sub topic {
 	my $args = shift;
 
 	if($args->{"topic"}) {
-		if($args->{"topic"} =~ /^.*\Q$flag\E\s*(.+)$/) {
+		if($args->{"topic"} =~ /^.*\Q$flag\E\s*(.+)$/i) {
 			$isacc = 1;
 
 			open(OUT, ">$file");