mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-19 19:48:45 +00:00
fix: caching of assets (correct headers and versioned avatar and variables.css url) (#4118)
* fix: caching of assets (correct headers and versioned avatar url) * serve variables.css versioned and extend shared max age of assets * fix TestCommandSide_AddHumanAvatar * refactor: const types * refactor: return values Co-authored-by: Fabi <[email protected]> Co-authored-by: adlerhurst <[email protected]>
This commit is contained in:
co-authored by
Fabi
adlerhurst
parent
0c6b47a081
commit
dcac08b1d5
+10
-1
@@ -103,6 +103,15 @@ Machine:
|
||||
# Url: "http://169.254.169.254/metadata/instance?api-version=2021-02-01"
|
||||
# JPath: "$.compute.vmId"
|
||||
|
||||
# Storage for assets like user avatar, organization logo, icon, font, ...
|
||||
AssetStorage:
|
||||
Type: db
|
||||
# HTTP cache control settings for serving assets in the assets API and login UI
|
||||
# the assets will also be served with an etag and last-modified header
|
||||
Cache:
|
||||
MaxAge: 5s
|
||||
SharedMaxAge: 168h #7d
|
||||
|
||||
Projections:
|
||||
RequeueEvery: 60s
|
||||
RetryFailedAfter: 1s
|
||||
@@ -177,7 +186,7 @@ Console:
|
||||
SharedMaxAge: 5m
|
||||
LongCache:
|
||||
MaxAge: 12h
|
||||
SharedMaxAge: 168h
|
||||
SharedMaxAge: 168h #7d
|
||||
|
||||
Notification:
|
||||
Repository:
|
||||
|
||||
Reference in New Issue
Block a user