Note that there are some explanatory texts on larger screens.

plurals
  1. POCached Pages AJAX Not Working
    primarykey
    data
    text
    <p>Whenever a page is cached in both Firefox and Webkit, it appears to lose all ajax capabilities.</p> <pre><code>&lt;html manifest=cache.manifest&gt; &lt;head&gt; &lt;script src="js/jquery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="js/jqtouch.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>It will only retrieve pages that have been cached, no matter what. Anyone know how to fix this? Thanks in advance! EDIT: Ajax Code:</p> <pre><code> var http = false; if(navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } http.open("GET", "default.css", true); http.setRequestHeader('CacheControl', "no-cache"); http.onreadystatechange=function() { if(http.readyState == 4) { alert('4(good):'+http.responseText); } } http.send(null); </code></pre> <p>Also using jquery $.ajax for the request. Neither work. JQuery:</p> <pre><code> $.ajax({ url: site_url, cache: false, dataType: 'html', data: ({uuid : devid}), success: function(response){ </code></pre> <p>They always say successful, but only return data if the page is cached. Otherwise they return null "". </p> <p>One last thing: I am requesting pages not on the manifest, because of a rather large server side backend. It would not be possible to have all pages in the manifest.</p> <p>Basically, how would I access pages NOT on the manifest on same-site AJAX. Whenever I try currently it always return null. return 03:11:41, even with no-cache, etc.</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.
 

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