Skip to main content
  1. Posts/

Drupal: Pantheon Cookies

·89 words·1 min·
Drupal Performance Google Update Drupal 8 Drupal Commmerce Drupal Development

I’ve been using the commerce_currency_resolver module and it has been fantastic to use.  One issue I ran into was with how the cookies are handled on Pantheon.

When using custom cookies a special naming convention must be used.  The cookie’s name must start with STYXKEY.

Per Pantheon:

Respond to a request with cached content depending on the presence and value of a particular cookie. It’s important to note that in order for the response to be cached by Pantheon’s edge, the cookie name must match STYXKEY[a-zA-Z0-9_-]+.

Pantheon Documentation: https://pantheon.io/docs/cookies/

Michael Michalak
Author
Michael Michalak
Experienced Drupal consultant and Fractional CTO with over 13 years of expertise in backend development, optimization, and securing Drupal applications, specializing in custom module development, migrations, and enterprise integrations across various industries.