using Microsoft.AspNetCore.Mvc;
[ApiController]
[Route("api/[controller]")]
public class HomeController : ControllerBase
{
[HttpGet]
[OutputCache(Duration = 3600, VaryByQueryKeys = new[] { "id" })]
public IActionResult Get(int id)
// Simulate an expensive operation to generate the HTML response
await Task.Delay(1000);
return Ok($"Hello, World! {id}");
}