Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Got it figured out!</p> <p>Most information out there says to either use Jquery:</p> <pre><code>$.ajaxSetup({cache:false}); </code></pre> <p>Or html header</p> <pre><code>&lt;META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"&gt; &lt;META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"&gt; </code></pre> <p>The problem is that both of these get ride of caching altogether. In my situation I only wanted the ajax caching off, and only on page reloads, not within the page.</p> <p>$.ajaxSetup({cache:false}); will add a timestamp to the ajax get url. The trouble is that each time you click the tab, a new timestamp is added, making IE think it's a new URL, and reloading all of the information.</p> <p>Solution: Add the timestamp to the server side. This way each time the page is reloaded and the server is contacted, there is a new timestamp. But when you are clicking around on the client side, IE doesn't reload the url since it is the same and only changes on page reloads/navigating away and back.</p> <p>php:</p> <pre><code>$time = time(); $tabs = "&lt;div id='tabs'&gt; &lt;ul&gt; &lt;li&gt;&lt;a href='Home.php?viewIsActive=true&amp;tab=true&amp;timeStamp=" . $time . "'&gt; Active &lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href='Home.php?listAll=true&amp;tab=true&amp;timeStamp=" . $time . "'&gt; List All &lt;/a&gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;" </code></pre> <p>So, for ajax requests that you only want loaded once per page refresh/navigation, use server side timestamp, for ajax requests that you never want cached, use the jquery client side timestamp.</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.
    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