mdn / kuma

The project that powers MDN.
https://developer.mozilla.org
Mozilla Public License 2.0
1.93k stars 679 forks source link

T - Create pass-through Cloudfront behavior for Subscriptions #6722

Closed tobinmori closed 4 years ago

tobinmori commented 4 years ago

Summary

We need to create a new pass-through CDN behavior for the family of endpoints under https://developer.mozilla.org/<locale>/payments/*, at least temporarily, since some of the endpoints use the @waffle_flag("subscription") decorator, which depends on the sessionid (to get the user) and dwf_subscription cookies. The current default CDN behavior that handles these endpoints strips all incoming cookies from the request (except for the django_language cookie) for caching purposes, but a pass-through behavior will pass-through all incoming cookies and block all caching by the CDN. For additional context see https://github.com/mdn/kuma/issues/6721.

Acceptance Criteria

peterbe commented 4 years ago

How is this different to https://github.com/mdn/kuma/issues/6721 ?

escattone commented 4 years ago

How is this different to #6721 ?

This is the Sprint task that addresses #6721.

escattone commented 4 years ago

This is done. The */payments/* pass-through behavior has been added to the stage and prod primary CDN's (and is currently active), and a PR submitted to update the Terraform to reflect the changes (see https://github.com/mdn/infra/pull/387).