Skip to content

jkobz/tower-cache-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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

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

Installation

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

Usage

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

About

Tower middleware to set Cache-Control response header.

Topics

Resources

License

Stars

Watchers

Forks

Languages