From c9a71cca283f04cf082355119c0ebf14a3ede790 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Sun, 21 Jun 2020 17:42:55 -0700 Subject: [PATCH] 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. --- index.html | 2 +- news.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 19191bc..3250876 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@ } else { xhttp=new XMLHttpRequest(); } - xhttp.open("POST",dname,false); + xhttp.open("GET",dname,false); xhttp.send(""); return xhttp.responseXML; } diff --git a/news.html b/news.html index 8f59450..671093e 100644 --- a/news.html +++ b/news.html @@ -24,7 +24,7 @@ } else { xhttp=new XMLHttpRequest(); } - xhttp.open("POST",dname,false); + xhttp.open("GET",dname,false); xhttp.send(""); return xhttp.responseXML; } -- GitLab