I am having some very strange issues.
The Netlify proxy function seems to be caching the responses and not expiring them at random.
A few days ago the proxied endpoint served some 301 redirects. Since then we completely changed the endpoint and redeployed many times but Netlify is still serving them at random.
Basically some responses are 200 and correct and others are old 301.
And we can’t figure our how to purge the Netlify cache to get rid of the old 301 redirects.
[[redirects]] from = "/blog/*" to = "https://*/blog/:splat" status = 200 force = true
Curls one after the other. Sometimes it takes a few seconds or minutes to hit the wrong redirect. Others it keeps hitting the redirect every few requests
# curl https://*.com/blog/ -I HTTP/2 200 accept-ranges: bytes age: 1750 cache-control: public content-length: 10893 content-type: text/html; charset=UTF-8 date: Thu, 26 Dec 2019 12:32:11 GMT referrer-policy: strict-origin-when-cross-origin server: Netlify strict-transport-security: max-age=15768000 vary: Accept-Encoding x-nf-request-id: f69c62fb-8882-4ea0-b115-255dcbcb8f1b-10757663 # curl https://*.com/blog/ -I HTTP/2 301 cache-control: public, max-age=31536000 content-length: 60 content-type: text/plain; charset=utf-8 date: Tue, 24 Dec 2019 22:02:49 GMT location: https://*.com/blog/ server: Netlify x-powered-by: Express age: 140357 vary: Accept,Accept-Encoding x-nf-request-id: a5cf0029-6f22-40ae-b49a-afd144f868f7-9041480