Index: /trunk/FACT++/www/smartfact/index.js
===================================================================
--- /trunk/FACT++/www/smartfact/index.js	(revision 14415)
+++ /trunk/FACT++/www/smartfact/index.js	(revision 14416)
@@ -33,4 +33,5 @@
         var xmlLoad = new XMLHttpRequest();
         xmlLoad.open('POST', "index.php?load", true);
+        //xmlLoad.setRequestHeader("If-Match", "*");
         xmlLoad.onload = function()
         {
@@ -125,4 +126,5 @@
     var xmlPage = new XMLHttpRequest();
     xmlPage.open('POST', "struct/"+name+'.page', true);
+    //xmlPage.setRequestHeader("If-Match", "*");
     xmlPage.onload = function ()
     {
@@ -169,4 +171,5 @@
     var xmlCmd = new XMLHttpRequest();
     xmlCmd.open('POST', uri, true);
+    xmlCmd.setRequestHeader("If-Match", "*");
     xmlCmd.onload = function ()
     {
@@ -946,7 +949,14 @@
     var xmlText = new XMLHttpRequest();
     xmlText.open('POST', "data/"+fname+'.data', true);
+    //xmlText.setRequestHeader("If-Match", "*");
     xmlText.onload = function ()
     {
-        if (xmlText.status!=200)
+//        if (xmlText.status==412)
+//        {
+//            timeoutText = setTimeout(refresh_text, 3000);
+//            return;
+//        }
+
+        if (xmlText.status!=200 && xmlText.status!=412)
         {
             alert("ERROR[2] - HTTP request '"+fname+".data': "+xmlText.statusText+" ["+xmlText.status+"]");
@@ -1111,7 +1121,14 @@
     var xmlGfx = new XMLHttpRequest();
     xmlGfx.open('POST', "data/"+fname, true);
+    xmlGfx.setRequestHeader("If-Match", "*");
     xmlGfx.onload = function ()
     {
-        if (xmlGfx.status!=200)
+//        if (xmlGfx.status==412)
+//        {
+//            timeoutGraphics = setTimeout(refresh_graphics, 5000);
+//            return;
+//        }
+
+        if (xmlGfx.status!=200 && xmlGfx.status!=412)
         {
             alert("ERROR[3] - Request '"+fname+"': "+xmlGfx.statusText+" ["+xmlGfx.status+"]");
