replace tape library body layout
This commit is contained in:
@@ -137,8 +137,8 @@ func cacheControlMiddleware() gin.HandlerFunc {
|
||||
case path == "/api/v1/system/services":
|
||||
// Service list can be cached briefly
|
||||
c.Header("Cache-Control", "public, max-age=60")
|
||||
case strings.HasPrefix(path, "/api/v1/storage/zfs/pools/") && strings.HasSuffix(path, "/datasets"):
|
||||
// ZFS datasets should not be cached - they change frequently
|
||||
case strings.HasPrefix(path, "/api/v1/storage/zfs/pools"):
|
||||
// ZFS pools and datasets should not be cached - they change frequently
|
||||
c.Header("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
default:
|
||||
// Default: no cache for other endpoints
|
||||
|
||||
Reference in New Issue
Block a user