Restore GET method for news feed xhr.

The site was using POST to fetch the rss feed for display on
the landing and news pages to work around aggressive caching
in the apache webserver config.

Since the since was migrated to nginx this method no longer
works. We're not aggressively caching, so GET works fine.
If we do, an exception should simply be made for these
files and/or a server reload should be triggered on update.
parent d8fe3b7e
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
} else { } else {
xhttp=new XMLHttpRequest(); xhttp=new XMLHttpRequest();
} }
xhttp.open("POST",dname,false); xhttp.open("GET",dname,false);
xhttp.send(""); xhttp.send("");
return xhttp.responseXML; return xhttp.responseXML;
} }
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
} else { } else {
xhttp=new XMLHttpRequest(); xhttp=new XMLHttpRequest();
} }
xhttp.open("POST",dname,false); xhttp.open("GET",dname,false);
xhttp.send(""); xhttp.send("");
return xhttp.responseXML; return xhttp.responseXML;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment