jlelse
/
hugo-micropub
Archived
1
Fork 0

Return post location with cache bypass
continuous-integration/drone/push Build is passing Details

This commit is contained in:
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"))
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() {