lampac/Shared/Engine/ResponseCache.cs
lampac-talks f843f04fd4 chore: initial commit 154.3
Signed-off-by: lampac-talks <lampac-talks@users.noreply.github.com>
2026-01-30 16:23:09 +03:00

15 lines
483 B
C#

using Microsoft.AspNetCore.Http;
using System.Text.RegularExpressions;
namespace Shared.Engine
{
public static class ResponseCache
{
public static string ErrorKey(HttpContext httpContext)
{
string key = httpContext.Request.Path.Value + httpContext.Request.QueryString.Value;
return "ResponseCache:errorMsg:" + Regex.Replace(key, "(\\?|&)(account_email|cub_id|box_mac|uid|token|source|rchtype|nws_id)=[^&]+", "");
}
}
}