1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Added cache to favicon and logo

This commit is contained in:
Uncled1023 2018-01-27 13:26:41 -08:00
parent c8b0c1624c
commit 602ecc9b31

View File

@ -1,7 +1,8 @@
using System;
using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using System.Web.UI;
using Teknik.Areas.Error.Controllers;
using Teknik.Configuration;
@ -72,7 +73,11 @@ namespace Teknik.Controllers
}
// Get the Favicon
[HttpGet]
[AllowAnonymous]
[OutputCache(
Duration = 31536000,
Location = OutputCacheLocation.ServerAndClient)]
public ActionResult Favicon()
{
// Get favicon
@ -81,7 +86,11 @@ namespace Teknik.Controllers
}
// Get the Logo
[HttpGet]
[AllowAnonymous]
[OutputCache(
Duration = 31536000,
Location = OutputCacheLocation.ServerAndClient)]
public ActionResult Logo()
{
// Get favicon
@ -90,6 +99,7 @@ namespace Teknik.Controllers
}
// Get the Robots.txt
[HttpGet]
[AllowAnonymous]
public ActionResult Robots()
{
@ -134,4 +144,4 @@ namespace Teknik.Controllers
return true;
}
}
}
}