Return post location with cache bypass

master
Jan-Lukas Else 2020-05-11 09:05:26 +02:00
parent 79b28111f5
commit ce0baf0086
1 changed files with 1 additions and 1 deletions

View File

@ -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")) _, _ = w.Write([]byte("There was an error committing the entry to the repository"))
return return
} else { } else {
w.Header().Add("Location", location) w.Header().Add("Location", location+"?cache=0")
w.WriteHeader(http.StatusAccepted) w.WriteHeader(http.StatusAccepted)
// Purge CDN after 30 seconds, send webmentions, post to social media // Purge CDN after 30 seconds, send webmentions, post to social media
go func() { go func() {