Summary

This module adds caching for authenticated users per role.

This is achieved by setting setting modifying the response headers per user role.

Example for user role customer and cache time of 1 day:

  • Cache-Control: max-age=86400, public
  • Vary: Accept-Encoding, X-Drupal-Roles
  • X-Drupal-Roles: authenticated customer

Use case

This module allows to serve cached pages from reverse proxy servers such as a CDN or a varnish cache.