- Issue created by @derekw
- ๐บ๐ธUnited States david strauss San Francisco, CA
We should probably just make the module more resilient/self-disabling when it's not actively running on Pantheon. Do you know where it's hanging?
- ๐บ๐ธUnited States derekw
When the module is installed locally I get a 502 Bad Gateway error from my local nginx server.
The Nginx error log has:
upstream sent too big header while reading response header from upstream, client: 10.211.55.2, server: local.mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "local.mydomain.com"
Does that help?
- ๐บ๐ธUnited States david strauss San Francisco, CA
I see. This is about the large Surrogate-Key header. We should avoid setting that when we're not on the Pantheon platform -- unless perhaps re-enabled in settings.php.
- ๐บ๐ธUnited States codechefmarc
We use Config Split ( https://www.drupal.org/project/config_split โ ) for this purpose and seems to work really well. That said, I'd love the module to know if it's running on Pantheon vs locally and adjust accordingly.
- ๐จ๐ฆCanada Charlie ChX Negyesi ๐Canada
ghost of drupal past โ made their first commit to this issueโs fork.
- Status changed to Fixed
about 7 hours ago 5:57pm 11 July 2025 Release 2.3.3 adds a condition to override the surrogate key header limit
For your local environment, you can override the surrogate key header limit, which defaults to 25,000 bytes, by adding the following line to your site's settings.php file and adjusting the value as needed. Note that the maximum value is capped at 25,000 bytes.
$config['pantheon_advanced_page_cache.settings']['surrogate_key_header_limit'] = 10000;