Return post location with cache bypass
parent
79b28111f5
commit
ce0baf0086
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue