tower-cache-control 1.1.1

Tower middleware to set Cache-Control response header
Documentation

Tower layer that simplifies setting Cache-Control response header, featuring:

  • Opinionated Cache-Control value based on the response status
  • Customizable default value

Usage

[dependencies]
tower-cache-control = "1.1.1"

Layer CacheControlLayer comes with a default value (via Default trait), although it supports a custom CacheControl setting (via axum-extra crate re-export).