Displaying 2 results from an estimated 2 matches for "cachebust".
Did you mean:
cache_st
2006 May 25
1
prototype Ajax.Request
Hi, I''m using like this
var pars = ''table=''+this.config[''table'']+''&op=update&id=''+id;
new Ajax.Request(
this.config[''url''],
{
method: ''get'',
parameters: pars,
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...thod="GET";
+
+// Random sequence numbers are needed to prevent Opera from caching
+// replies
+
+var is_opera = navigator.userAgent.toLowerCase().indexOf("opera") != -1;
+if (is_opera) {
+ method="GET";
+}
+
+var seqnum_val=Math.round(Math.random()*100000);
+function cachebust() {
+ if (is_opera) {
+ seqnum_val++;
+ return "&x="+seqnum_val;
+ } else {
+ return "";
+ }
+}
+
+
+// Cross-platform creation of XMLHttpRequest object:
+
+function new_XMLHttpRequest() {
+ if (window.XMLHttpRequest) {
+ // For most browsers:
+ return new...