Skip to content

Commit

Permalink
Update caching settings
Browse files Browse the repository at this point in the history
  • Loading branch information
marcominerva committed Jun 12, 2023
1 parent a06db0b commit bac81fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/RandomPhotos/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using DallENet;
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.WebUtilities;
using Microsoft.Net.Http.Headers;
using Microsoft.OpenApi.Models;
using MinimalHelpers.OpenApi;
using MinimalHelpers.Routing;
Expand Down Expand Up @@ -82,6 +83,7 @@
options.AddPolicy("Default", policy =>
{
policy.SetLocking(false)
.SetVaryByHeader(HeaderNames.AcceptLanguage)
.Expire(TimeSpan.FromDays(30));
});
});
Expand Down

0 comments on commit bac81fd

Please sign in to comment.