<commit_before>﻿using System.Web.Mvc;
using Amry.Gst.Properties;
using WebMarkupMin.Mvc.ActionFilters;

namespace Amry.Gst.Web.Controllers
{
    public class HomeController : Controller
    {
        [Route, MinifyHtml]
        public ActionResult Index()
        {
            return View();
        }

        [Route("about"), MinifyHtml]
        public ActionResult About()
        {
            return View();
        }

        [Route("api"), MinifyHtml]
        public ActionResult Api()
        {
            return View();
        }

        [Route("ver")]
        public ActionResult Version()
        {
            return Content(AssemblyInfoConstants.Version, "text/plain");<commit_msg>Cache /api and /about page<commit_after>﻿using System.Web.Mvc;
using Amry.Gst.Properties;
using WebMarkupMin.Mvc.ActionFilters;

namespace Amry.Gst.Web.Controllers
{
    public class HomeController : Controller
    {
        const int OneYear = 31536000;

        [Route, MinifyHtml]
        public ActionResult Index()
        {
            return View();
        }

        [Route("about"), MinifyHtml, OutputCache(Duration = OneYear)]
        public ActionResult About()
        {
            return View();
        }

        [Route("api"), MinifyHtml, OutputCache(Duration = OneYear)]
        public ActionResult Api()
        {
            return View();
        }

        [Route("ver")]
        public ActionResult Version()
        {
            return Content(AssemblyInfoConstants.Version, "text/plain");
{'fraction_non_alphanumeric': 0.10582010582010581, 'fraction_numerical': 0.005291005291005291, 'mean_word_length': 1.9842209072978303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4217389', 'n_tokens_mistral': 411, 'n_tokens_neox': 407, 'n_words': 91}