Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The reason I asked what browser you are using is because all browsers behave different when executing AJaX requests. Basically a browser listens to several 'headers' inside a request response. One of these 'headers' sets the expiration date for the data downloaded, which you don't set (assuming this is the complete code). If you keep requesting data over the same URL, you will get the 'cached' result instead of the new result.</p> <p>Forcing the browser to request new data every time can be done through PHP, using the <code>header()</code> function. <em>Note</em> that this function <strong>has</strong> to be called <strong>before any output is sent to the browser</strong>. The headers you have to include are like this:</p> <pre><code>header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); </code></pre> <p>The first header will (obviously) tell the browser to revalidate the content on every request, the second will invalidate the cache immediately (which is used in older browsers).</p> <p>Another option to do this, using Javascript instead of PHP, is to alter the URL on every request. This is not the best option, since it will create new cache data on every reload of the page, but it will work. You can do this by adding some random URL data (like <code>"getPrenotazioni.php?id=" + Math.random()</code>).</p> <p><strong>Note that</strong> I am far from sure that this is your problem, but it is likely considering your code you provided. You can simply check this by opening the page in IE (or any other browser that you had already open) after you made a change and see if the pages differ amongst browsers. Alternatively you can load the page after you made change and if nothing changed, clear your cache and reload (<code>CTRL + F5</code>).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload