|
|
@@ -21,7 +21,10 @@ namespace goods.Controllers
|
|
|
_configuration = configuration;
|
|
|
}
|
|
|
|
|
|
+ // HEAD 도 함께 받는다. 정적 파일일 때는 StaticFiles 미들웨어가 HEAD 를 처리해 줬지만
|
|
|
+ // 어트리뷰트 라우팅은 HttpGet 만 두면 HEAD 요청에 405 를 반환한다.
|
|
|
[HttpGet("/sitemap.xml")]
|
|
|
+ [HttpHead("/sitemap.xml")]
|
|
|
[ResponseCache(Duration = 3600, Location = ResponseCacheLocation.Any)]
|
|
|
public IActionResult Index()
|
|
|
{
|