---
layout: page
title: Fuzzy max-age Calculator
page-class: page--max-age
meta: "Cache-Control’s max-age isn’t the most intuitive way of defining time. This calculator has your back."
permalink: /max-age/
lux: max-age Calculator
---
[`Cache-Control`](/2019/03/cache-control-for-civilians/)’s
[`max-age`](/2023/10/what-is-the-maximum-max-age/)
directive accepts a duration in seconds, but seconds aren’t particularly
human-friendly. This calculator allows you to specify `max-age` in much more
palatable terms and end up with a compliant `max-age` format. Alternatively, you
can paste an existing `max-age` value and get its human-friendly equivalent.
**Give it a go!**
Cache-Control:
Human-friendly version:
---
Disclaimer: This `max-age` calculator aims to provide
convenient and human-friendly conversions between time periods and cache
durations. While I strive for accuracy, there may be edge cases or unexpected
behavior in certain input formats. As this tool interprets natural language and
various time units, I encourage users to verify important calculations and be
mindful of potential inaccuracies in highly complex inputs. I welcome feedback
and suggestions! If you encounter any issues, or if you’d like to contribute
improvements, please feel free to submit them to the GitHub repo at
[github.com/csswizardry/csswizardry.github.com](https://github.com/csswizardry/csswizardry.github.com/blob/master/max-age.md).