On 05-06-13 10:41, Erik de Castro Lopo wrote:
Have you tried replacing the "GET" here:

          xhttp.open("GET",dname,false);
          xhttp.send("");
          return xhttp.responseXML;

with a "POST" operation instead? See the "GET or POST?" section of this
page:

Right, I didn't know about that. Here's a patch, it seems to work, but I'm not really sure. With this patch, there seems to be no caching, but when I reverted it, it worked too. I really don't understand Firefox caching.

Well, anyway, a few sources on the internet say this should work and I don't see a way this might break anything.
>From c35a4b26d6274cf864146f725f8802c55267b3e0 Mon Sep 17 00:00:00 2001
From: Martijn van Beurden <mva...@gmail.com>
Date: Wed, 5 Jun 2013 19:19:14 +0200
Subject: [PATCH] Change javascript feed fetch from GET to POST

This change should disable caching of the news feed
---
 index.html | 2 +-
 news.html  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.html b/index.html
index 41d81d8..b4efb6b 100644
--- a/index.html
+++ b/index.html
@@ -23,7 +23,7 @@
 	  } else {
 	    xhttp=new XMLHttpRequest();
 	  }
-	  xhttp.open("GET",dname,false);
+	  xhttp.open("POST",dname,false);
 	  xhttp.send("");
 	  return xhttp.responseXML;
 	}
diff --git a/news.html b/news.html
index 88e8ab6..02048df 100644
--- a/news.html
+++ b/news.html
@@ -25,7 +25,7 @@
 	  } else {
 	    xhttp=new XMLHttpRequest();
 	  }
-	  xhttp.open("GET",dname,false);
+	  xhttp.open("POST",dname,false);
 	  xhttp.send("");
 	  return xhttp.responseXML;
 	}
-- 
1.8.1.2

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to