This module allows administrators to customize the Cache-Control headers sent with web pages. It provides separate configurations for cached and uncached pages, and also allows setting a maximum age for anonymous user caches.
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.
Ask your assistant about Cache Control Headers
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.2-alpha4 | Pre-release | 9–10 | May 24, 2024 | ||
| 1.0.x-dev | Dev | 9–10 | May 23, 2024 |