Skip to content

Commit 6c769d6

Browse files
authored
Adds attribute to ensure management API requests are never cached in the browser or via a CDN (#19496)
Adds attribute to ensure management API requests are never cached in the browser or via a CDN.
1 parent 67ab067 commit 6c769d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Umbraco.Cms.Api.Management/Controllers/ManagementApiControllerBase.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using Umbraco.Cms.Core.Models.Membership;
1414
using Umbraco.Cms.Core.Security;
1515
using Umbraco.Cms.Web.Common.Authorization;
16+
using Umbraco.Cms.Web.Common.Filters;
1617

1718
namespace Umbraco.Cms.Api.Management.Controllers;
1819

@@ -22,6 +23,7 @@ namespace Umbraco.Cms.Api.Management.Controllers;
2223
[MapToApi(ManagementApiConfiguration.ApiName)]
2324
[JsonOptionsName(Constants.JsonOptionsNames.BackOffice)]
2425
[AppendEventMessages]
26+
[DisableBrowserCache]
2527
[Produces("application/json")]
2628
public abstract class ManagementApiControllerBase : Controller, IUmbracoFeature
2729
{

0 commit comments

Comments
 (0)