* Added a "random number" parameter to the wholist ajax refresh request,
authorArt Cancro <ajc@citadel.org>
Sun, 18 Sep 2005 14:30:05 +0000 (14:30 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 18 Sep 2005 14:30:05 +0000 (14:30 +0000)
  because b0rken MSIE still insists on fetching from its cache even though
  it's been explicitly told not to.

webcit/ChangeLog
webcit/README.txt
webcit/who.c

index 32a86428c5140bcccce82a23122ff3625afe6e14..7355a4ffa72bf62c334b2bafa02b6b18a631317a 100644 (file)
@@ -1,4 +1,9 @@
 $Log$
 $Log$
+Revision 625.12  2005/09/18 14:30:05  ajc
+* Added a "random number" parameter to the wholist ajax refresh request,
+  because b0rken MSIE still insists on fetching from its cache even though
+  it's been explicitly told not to.
+
 Revision 625.11  2005/09/18 04:04:32  ajc
 * Switched the wholist updater to Prototype's AJAX updater, instead of
   using Rico's wrapper around it.  It's actually simpler and doesn't seem
 Revision 625.11  2005/09/18 04:04:32  ajc
 * Switched the wholist updater to Prototype's AJAX updater, instead of
   using Rico's wrapper around it.  It's actually simpler and doesn't seem
@@ -2999,5 +3004,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
-
index e80ecdf3e8ed90a87c004b72517cf388f1a71036..c0362ca0233e75c1daef84a2dd318b8562287f92 100644 (file)
@@ -96,13 +96,13 @@ the "webserver" program:
      available network interfaces.  Normally this will be the case, but if
      you are running multiple Citadel systems on one host, it can be useful.
  
      available network interfaces.  Normally this will be the case, but if
      you are running multiple Citadel systems on one host, it can be useful.
  
-  -> http_port: the TCP port on which you wish your WebCit server to run.
-     This can be any port number at all; there is no standard.  Naturally,
-     you'll want to create a link to this port on your system's regular web
-     pages (presumably on an Apache server running on port 80).  Or, if you
-     are installing WebCit on a dedicated server, then you might choose to
-     use port 80 after all.
+  -> http_port: the TCP port on which you wish your WebCit server to run.  If
+     you are installing WebCit on a dedicated server, you can use the
+     standard port 80.  Otherwise, if port 80 is already occupied by some
+     other web service (probably Apache), then you'll need to select a
+     different port.  If you do not specify a port number, WebCit will attempt
+     to use port 2000.
+     
   -> tracefile: where you want WebCit to log to.  This can be a file, a
      virtual console, or /dev/null to suppress logging altogether.
  
   -> tracefile: where you want WebCit to log to.  This can be a file, a
      virtual console, or /dev/null to suppress logging altogether.
  
@@ -134,7 +134,7 @@ the "webserver" program:
  GRAPHICS
  --------
  
  GRAPHICS
  --------
  
- WebCit contains a small amount of graphics (icons, etc.) which are kept
+ WebCit contains graphics, templates, JavaScript code, etc. which are kept
 in its "static" subdirectory.  All site-specific graphics, however, are
 fetched from the Citadel server.
  
 in its "static" subdirectory.  All site-specific graphics, however, are
 fetched from the Citadel server.
  
index bc8c567b9d09ca285565920bdcaab872420d3869..05c22ba0c478ceb6441a4004fd3c65007bfeb89a 100644 (file)
@@ -133,7 +133,7 @@ void who_inner_html(void) {
                "Server: %s\r\n"
                "Connection: close\r\n"
                "Pragma: no-cache\r\n"
                "Server: %s\r\n"
                "Connection: close\r\n"
                "Pragma: no-cache\r\n"
-               "Cache-Control: no-store, no-cache, must-revalidate\r\n",
+               "Cache-Control: no-cache\r\n",
                SERVER);
        begin_burst();
 
                SERVER);
        begin_burst();
 
@@ -196,12 +196,14 @@ void who(void)
         *
         * * setInterval() makes it auto-run this code every 30,000 milliseconds (30 seconds)
         *
         *
         * * setInterval() makes it auto-run this code every 30,000 milliseconds (30 seconds)
         *
-        * FIXME b0rken IE is still caching it
+        * The random number parameter forces b0rken MSIE to fetch a new page instead of going to
+        * its cache, even though it's been specifically told not to cache.
+        *
         */
        wprintf(
                "<script type=\"text/javascript\">                                                      \n"
                " setInterval(\" new Ajax.Updater('fix_scrollbar_bug', '/who_inner_html',               "
         */
        wprintf(
                "<script type=\"text/javascript\">                                                      \n"
                " setInterval(\" new Ajax.Updater('fix_scrollbar_bug', '/who_inner_html',               "
-               "                       {method: 'get'});                       \", 30000);             \n"
+               "               {method: 'get', parameters: Math.random() });   \", 3000);              \n"
                "</script>                                                                              \n"
        );
        wDumpContent(1);
                "</script>                                                                              \n"
        );
        wDumpContent(1);