Skip to content

Config: Add advanced HTTP cache control options #3297

Description

@lastzero

As a user who has configured a CDN or uses a caching proxy, I want more control over the cache headers.

For this purpose, we add the following two new config options:

Environment CLI Flag Default Description
PHOTOPRISM_HTTP_CACHE_MAXAGE --http-cache-maxage 2592000 time in SECONDS until cached content expires
PHOTOPRISM_HTTP_CACHE_PUBLIC --http-cache-public allow static content to be cached by a CDN or caching proxy

Metadata

Metadata

Assignees

Labels

performancePerformance OptimizationreleasedAvailable in a stable release

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions