Browse Source

Fix Squid middleware

pull/351/head
Sebastian Stehle 7 years ago
parent
commit
43ad97427f
  1. 7
      src/Squidex/Pipeline/Squid/SquidMiddleware.cs

7
src/Squidex/Pipeline/Squid/SquidMiddleware.cs

@ -84,13 +84,16 @@ namespace Squidex.Pipeline.Squid
svg = svg.Replace("{{TEXT3}}", l3);
svg = svg.Replace("[COLOR]", background);
context.Response.StatusCode = 200;
context.Response.ContentType = "image/svg+xml";
context.Response.Headers["Cache-Control"] = "public, max-age=604800";
await context.Response.WriteAsync(svg);
}
await next(context);
else
{
await next(context);
}
}
private static (string, string, string) SplitText(string text)

Loading…
Cancel
Save