public override void OnActionExecuting(ActionExecutingContext filterContext) { var cookie = new HttpCookie("cache-buster-tag", CacheBuster.Tag()) { Expires = DateTime.Now.AddMinutes(1), HttpOnly = true }; filterContext.HttpContext.Response.Cookies.Add(cookie); }
public static string CacheBust(this HtmlHelper helper, string path) => CacheBuster.Bust(path);