Skip to content

Commit

Permalink
Cache error pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cwetanow committed Apr 16, 2017
1 parent df75a23 commit b331506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Logs.Web/Controllers/ErrorController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ namespace Logs.Web.Controllers
public class ErrorController : Controller
{
[HttpGet]
[OutputCache(Duration = 60 * 60 * 24)]
public ActionResult NotFound()
{
return this.View();
}

[HttpGet]
[OutputCache(Duration = 60 * 60 * 24)]
public ActionResult ServerError()
{
return this.View();
Expand Down

0 comments on commit b331506

Please sign in to comment.