From 0b4208535357e720cfa77267e067c23b5cb0a1eb Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Thu, 24 Jul 2025 09:25:52 +0200 Subject: [PATCH 1/2] Bumped version to 16.1.1. --- src/Umbraco.Web.UI.Client/package.json | 2 +- version.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/package.json b/src/Umbraco.Web.UI.Client/package.json index 1972dafada..6459f7d0a4 100644 --- a/src/Umbraco.Web.UI.Client/package.json +++ b/src/Umbraco.Web.UI.Client/package.json @@ -1,7 +1,7 @@ { "name": "@umbraco-cms/backoffice", "license": "MIT", - "version": "16.1.0", + "version": "16.1.1", "type": "module", "exports": { ".": null, diff --git a/version.json b/version.json index 311ba25a6a..ba53bc4b4b 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", - "version": "16.1.0", + "version": "16.1.1", "assemblyVersion": { "precision": "build" }, From 7e82c258eebaa595eadc9b000461e27d02bc030e Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Tue, 29 Jul 2025 05:10:52 +0200 Subject: [PATCH 2/2] Merge commit from fork Co-authored-by: kjac --- .../Caching/DeliveryApiOutputCachePolicy.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs b/src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs index da1580554c..0f318c9602 100644 --- a/src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs +++ b/src/Umbraco.Cms.Api.Delivery/Caching/DeliveryApiOutputCachePolicy.cs @@ -18,7 +18,12 @@ internal sealed class DeliveryApiOutputCachePolicy : IOutputCachePolicy .RequestServices .GetRequiredService(); - context.EnableOutputCaching = requestPreviewService.IsPreview() is false; + IApiAccessService apiAccessService = context + .HttpContext + .RequestServices + .GetRequiredService(); + + context.EnableOutputCaching = requestPreviewService.IsPreview() is false && apiAccessService.HasPublicAccess(); context.ResponseExpirationTimeSpan = _duration; return ValueTask.CompletedTask;