Skip to content

Commit

Permalink
Disabled caching on the search page.
Browse files Browse the repository at this point in the history
  • Loading branch information
uncheckederror committed Jul 28, 2024
1 parent 8c05580 commit b9b2f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NumberSearch.Mvc/Controllers/SearchController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ public SearchController(MvcConfiguration mvcConfiguration)
/// <param name="query"> A complete or partial phone number. </param>
/// <returns> A view of nothing, or the result of the query. </returns>
[HttpGet("Search")]
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[OutputCache(Duration = 3600, VaryByQueryKeys = new string[] { "query","city","failed","view","page","dialedNumber", "csv" })]
//[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
//[OutputCache(Duration = 3600, VaryByQueryKeys = new string[] { "query","city","failed","view","page","dialedNumber", "csv" })]
public async Task<IActionResult> SearchAsync(string query, string city, string failed, string view, int page = 1)
{
// Fail fast
Expand Down

0 comments on commit b9b2f20

Please sign in to comment.