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

Config: Add advanced HTTP cache control options #3297

Closed
lastzero opened this issue Mar 20, 2023 · 0 comments
Closed

Config: Add advanced HTTP cache control options #3297

lastzero opened this issue Mar 20, 2023 · 0 comments
Assignees
Labels
performance Performance Optimization released Available in the stable release

Comments

@lastzero
Copy link
Member

lastzero commented Mar 20, 2023

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
@lastzero lastzero added the performance Performance Optimization label Mar 20, 2023
@lastzero lastzero self-assigned this Mar 20, 2023
lastzero added a commit that referenced this issue Mar 20, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero lastzero changed the title Config: Add options for HTTP cache control Config: Add options for better HTTP cache control Mar 20, 2023
@lastzero lastzero added the please-test Ready for acceptance test label Mar 20, 2023
lastzero added a commit that referenced this issue Mar 20, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit that referenced this issue Mar 20, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit that referenced this issue Mar 20, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
lastzero added a commit that referenced this issue Mar 20, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
@lastzero lastzero changed the title Config: Add options for better HTTP cache control Config: Add advanced HTTP cache control options Mar 20, 2023
seeschloss pushed a commit to seeschloss/photoprism that referenced this issue Apr 10, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
seeschloss pushed a commit to seeschloss/photoprism that referenced this issue Apr 10, 2023


Signed-off-by: Michael Mayer <michael@photoprism.app>
seeschloss pushed a commit to seeschloss/photoprism that referenced this issue Apr 10, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
seeschloss pushed a commit to seeschloss/photoprism that referenced this issue Apr 10, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
seeschloss pushed a commit to seeschloss/photoprism that referenced this issue Apr 10, 2023
Signed-off-by: Michael Mayer <michael@photoprism.app>
@graciousgrey graciousgrey added released Available in the stable release and removed please-test Ready for acceptance test labels May 3, 2023
@lastzero lastzero moved this to Released 🌈 in Roadmap 🚀✨ Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance Optimization released Available in the stable release
Projects
Status: Release 🌈
Development

No branches or pull requests

2 participants