From d17fd0a6af636863f5c50263fbc51e1d5f9f7c19 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 20 Oct 2025 14:10:20 +0100 Subject: [PATCH] Update response-caching.md Updated GetBackOfficePath method --- 17/umbraco-cms/reference/response-caching.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/17/umbraco-cms/reference/response-caching.md b/17/umbraco-cms/reference/response-caching.md index c6bfc76ea19..6be36c4a8b9 100644 --- a/17/umbraco-cms/reference/response-caching.md +++ b/17/umbraco-cms/reference/response-caching.md @@ -18,6 +18,7 @@ using Microsoft.AspNetCore.Http.Headers; using Microsoft.Net.Http.Headers; using Umbraco.Cms.Core.Configuration.Models; +using Umbraco.Cms.Core.Hosting; using IHostingEnvironment = Umbraco.Cms.Core.Hosting.IHostingEnvironment; namespace Umbraco.Docs.Samples.Web.Tutorials; @@ -38,7 +39,7 @@ public class ConfigureStaticFileOptions : IConfigureOptions private readonly string _backOfficePath; public ConfigureStaticFileOptions(IOptions globalSettings, IHostingEnvironment hostingEnvironment) - => _backOfficePath = globalSettings.Value.GetBackOfficePath(hostingEnvironment); + => _backOfficePath = hostingEnvironment.GetBackOfficePath(); public void Configure(StaticFileOptions options) => options.OnPrepareResponse = ctx =>