From ce0baf00860f28890dbf40f757c1e18733d63306 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Mon, 11 May 2020 09:05:26 +0200 Subject: [PATCH] Return post location with cache bypass --- micropub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/micropub.go b/micropub.go index 4ec3c81..82693a7 100644 --- a/micropub.go +++ b/micropub.go @@ -63,7 +63,7 @@ func HandleMicroPub(w http.ResponseWriter, r *http.Request) { _, _ = w.Write([]byte("There was an error committing the entry to the repository")) return } else { - w.Header().Add("Location", location) + w.Header().Add("Location", location+"?cache=0") w.WriteHeader(http.StatusAccepted) // Purge CDN after 30 seconds, send webmentions, post to social media go func() {