Skip to content

Commit

Permalink
Updated the query keys in support of #295.
Browse files Browse the repository at this point in the history
  • Loading branch information
uncheckederror committed Jun 25, 2024
1 parent 6686548 commit 0256f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NumberSearch.Mvc/Controllers/BlogController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public BlogController(MvcConfiguration mvcConfiguration)

[HttpGet]
[ResponseCache(VaryByHeader = "User-Agent", Duration = 30, Location = ResponseCacheLocation.Any)]
[OutputCache(Duration = 3600, VaryByQueryKeys = new string[] { "query", "refresh" })]
[OutputCache(Duration = 3600, VaryByQueryKeys = ["query", "refresh"])]
public async Task<IActionResult> IndexAsync(string query, bool refresh)
{
using var connection = new NpgsqlConnection(_postgresql);
Expand Down

0 comments on commit 0256f3b

Please sign in to comment.