As commented in https://www.drupal.org/project/drupal/issues/2972483 🐛 Page Cache must respect Vary, otherwise it might serve mismatched responses. Active , I've developed the module page_cache_vary → until the issue is fixed in the core page_cache module.
It can retrieve cache vary headers by caching them per URL, so that the cost of computing the vary headers is as minimal as possible.
If this solution is good enough, I can try to integrate it directly in Drupal, let me know what you think.
I've developed the module page_cache_vary → until the issue is fixed in the core page_cache module.
It can retrieve cache vary headers by caching them per URL, so that the cost of computing the vary headers is as minimal as possible.
If this solution is good enough, I can try to integrate it directly in Drupal, let me know what you think.