[ACP-1337]  System Status Refresh Occasionally Stops
Type Bug
Priority High
Severity Minor
Component Browser Content
Fixed In Version [8.08.0
Versions Affected [7.27.2
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 4/13/2015

Description
This has been an annoying problem which I haven't been able to repro here until today. Since we leave for NEAF in a day and a half, the tea leaves lined up to cause the System Status display to quit whenever I was running as 127.0.0.1. Repeatable.

A long story, but the primary problem is that once in a blue moon the HTTP engine in ACP (Dart PowerTCP WebServer) returns the contents of the ASP script instead of firing its Get() event which causes the ASP page to be run and generate the JSON output for the SysStat.

Now for the fun part: Once that raw ASP source gets into the browser's cache, subsequent 6 second-interval GETs for the system status info instead return the cached copy of the raw ASP source. Never again does it ask for info from the webserver.

The cure is twofold:
  1. Switch to using the POST method to fetch the JSON, and
  2. Add (in the AJAX library) a header Cache-Control: no-cache to all POST requests. 

Comments
6/19/2015 12:12:07 PM   Bob Denny
Looks like a WINNAH!!!!
4/13/2015 5:15:40 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 825
Affected files /trunk/ACP Help/relnotes.htm (Modified)
/trunk/New Content Development/DC3Plugins/DC3.Ajax.tid.js (Modified)
/trunk/New Content Development/Form Designs (DW)/SystemStatus.tid.html (Modified)
Check-in comment Occasional stoppages of System Status refresh should be mostly fixed now. At least this reason would be responsible for such stoppages and also the apparent random behavior of same. GEM:1337