Cache control settings

This project is not covered by Drupal’s security advisory policy.

The Cache Control Headers module allows site administrators to finely tune Drupal's Cache Control headers, both for cached and uncached pages. Leveraging the core FinishResponseSubscriber service, it seamlessly integrates the configured Cache-Control headers from the module's settings into the rendering process.

Features

  • Configurable Cache Control Headers for Cached pages for Anonymous users.
  • Configurable Cache Control Headers for Uncached pages such as for Authenticated users.
  • Configurable Max-age for Anonymous cache.

Post-Installation

Simply download and install this module as per the normal procedure. The module would be setup with the Drupal's core Cache-Control headers in the settings. Then go to the configuration page (/admin/config/cache_control_headers/settings) and modify the cache-control headers as necessary.

Project information

Releases