Skip to content

Commit

Permalink
Prevent caching on gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
Cirx08 committed Dec 15, 2024
1 parent 9702908 commit 24114c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WeddingShare/Controllers/GalleryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public GalleryController(IWebHostEnvironment hostingEnvironment, IConfigHelper c
[HttpGet]
[RequiresSecretKey]
[AllowGuestCreate]
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public async Task<IActionResult> Index(string id = "default", string? key = null, ViewMode? mode = null, GalleryOrder order = GalleryOrder.None)
{
id = id.ToLower();
Expand Down

0 comments on commit 24114c1

Please sign in to comment.