Changeset 14677 for trunk/FACT++


Ignore:
Timestamp:
11/21/12 20:33:21 (12 years ago)
Author:
tbretz
Message:
Tried to fix that sometimes data was obtained from the cache eventhough I sent a post request.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.js

    r14416 r14677  
    3333        var xmlLoad = new XMLHttpRequest();
    3434        xmlLoad.open('POST', "index.php?load", true);
    35         //xmlLoad.setRequestHeader("If-Match", "*");
     35        xmlLoad.setRequestHeader("Cache-Control", "no-cache");
     36        xmlLoad.setRequestHeader("If-Match", "*");
    3637        xmlLoad.onload = function()
    3738        {
     
    125126
    126127    var xmlPage = new XMLHttpRequest();
    127     xmlPage.open('POST', "struct/"+name+'.page', true);
    128     //xmlPage.setRequestHeader("If-Match", "*");
     128    xmlPage.open('GET', "struct/"+name+'.page', true);
     129    xmlPage.setRequestHeader("Cache-Control", "no-cache");
     130    xmlPage.setRequestHeader("If-Match", "*");
    129131    xmlPage.onload = function ()
    130132    {
     
    171173    var xmlCmd = new XMLHttpRequest();
    172174    xmlCmd.open('POST', uri, true);
     175    xmlCmd.setRequestHeader("Cache-Control", "no-cache");
    173176    xmlCmd.setRequestHeader("If-Match", "*");
    174177    xmlCmd.onload = function ()
     
    925928var timeoutGraphics = null;
    926929
     930var test_counter = 0;
     931
    927932function refresh_text()
    928933{
     
    948953
    949954    var xmlText = new XMLHttpRequest();
    950     xmlText.open('POST', "data/"+fname+'.data', true);
    951     //xmlText.setRequestHeader("If-Match", "*");
     955    xmlText.open('GET', "data/"+fname+'.data', true);
     956    xmlText.setRequestHeader("Cache-Control", "no-cache");
     957    xmlText.setRequestHeader("If-Match", "*");
    952958    xmlText.onload = function ()
    953959    {
     
    11201126
    11211127    var xmlGfx = new XMLHttpRequest();
    1122     xmlGfx.open('POST', "data/"+fname, true);
     1128    xmlGfx.open('GET', "data/"+fname, true);
     1129    xmlGfx.setRequestHeader("Cache-Control", "no-cache");
    11231130    xmlGfx.setRequestHeader("If-Match", "*");
    11241131    xmlGfx.onload = function ()
Note: See TracChangeset for help on using the changeset viewer.