I have ever used amazon cloudfront from September to yesterday, everything worked well, no this error, and if don’t use any CDN service, everything works well, only use cloudflare CDN service can cause this error, there is only one reason, something have not been set right in cloudflare CDN system.
When i use cloudfront, i have met similar error, aws customer service told me to set as this:
From within the behavior settings, “Cache and origin request settings” can be set to “Use a cache policy and origin request policy”.
Then the other two settings will be visible.
Cache Policy: Managed-CachingDisabled
Origin Request Policy: Managed-AllViewer
After done this, all work well, no error, but i don’t know how to set in cloudflare system.