We have a problem with using Live Preview on a site that uses CDN caching [CloudFront].
When opening Live Preview a POST is sent to the actual page URL containing the information and the response is rendered
However /mypage is in the CDN cache for GET requests and so when Craft sends the POST the headers and cookies are not forwarded to the origin. This causes a 400 error.
We tried using a subdomain just for the CP, but of course the site is still on the cached domain and this is the domain used by the CP.
Is there a way to use live preview with CDN caching?
One potential approach would be to have a cookie set that is only set for logged in CP users, then we can set up a cache rule to bypass the CDN cache for all requests with that cookie.
Unfortunately our hosting partner informs us that we cannot have different caching profiles based upon a cookie. So we really need the Live Preview POST to be to paths that are not the actual cached live site paths.