Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not convert cache duration to hours #81

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 15, 2024

Hours is not fine enough as granularity for good cache control. For this reason, the Cache-Control header operates with a granularity of seconds as well. Let's also work with seconds here.

This is literally a breaking change, but it will only break caches.

Hours is not fine enough as granularity for good cache control. For this
reason, the `Cache-Control` header operates with a granularity of
seconds as well. Let's also work with seconds here.

This is literally a breaking change, but it will only break caches.
@mamhoff mamhoff force-pushed the configure-ttl-in-secondes branch from 2a0d06b to ae5602b Compare May 15, 2024 09:22
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Makes much sense

@tvdeyen tvdeyen merged commit 19af451 into main May 15, 2024
16 checks passed
@tvdeyen tvdeyen deleted the configure-ttl-in-secondes branch May 15, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants