Hopefully fixed the caching problem with random

This commit is contained in:
2020-12-02 19:50:44 +01:00
parent b24c9dca3c
commit c21b66e0d9
7 changed files with 141 additions and 59 deletions

View File

@@ -12,7 +12,7 @@ import (
)
func syncHandler(w http.ResponseWriter, r *http.Request) {
(w).Header().Set("Access-Control-Allow-Origin", "*")
setCorsAndNoCacheHeaders(&w, r)
if r.URL.Path == "/sync" {
w.Header().Add("Content-Type", "application/json")
syncGames()