---
title: "Drupal 9 page cache does not respect the Vary header"
date: "2025-02-05T23:56:05+00:00"
summary:
image:
type: "article"
url: "/acquia-cloud-platform/help/92776-drupal-9-page-cache-does-not-respect-vary-header"
id: "d88618f2-b778-4ad4-801f-432cbab1fc5f"
---

Table of contents will be added

Issue
-----

Drupal Page Cache does not currently respect the Vary header , please see the following issues on Drupal.org for more information:

*   [Page Cache must respect Vary, otherwise it might serve mismatched responses](https://www.drupal.org/project/drupal/issues/2972483)
*   [Introduce "Vary" page cache response policy](https://www.drupal.org/project/drupal/issues/3023104)

Affected Applications/Limitations
---------------------------------

Any Drupal application with page cache enabled attempting to use the Vary header for variations in cache.

Resolution
----------

As a current workaround you can disable page cache by adding the following snippet in `settings.php`:

    $settings['cache']['bins']['page'] = 'cache.backend.null';