photoprism/pkg/http/header/duration.go
Michael Mayer a921f82a17 Pkg: Move /service/http/... to /http/... and add package /http/dns
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-19 21:08:48 +02:00

11 lines
440 B
Go

package header
// Durations in seconds, e.g. to set a maximum cache age.
const (
DurationMinute int = 60
DurationHour = DurationMinute * 60 // One hour in seconds
DurationDay = DurationHour * 24 // One day in seconds
DurationWeek = DurationDay * 7 // One week in seconds
DurationMonth = DurationDay * 31 // About one month in seconds
DurationYear = DurationDay * 365 // 365 days in seconds
)