Don't allow browsers to cache the ASP.NET page

This allows the WS URL to be re-generated for each session.

Fixes #83
This commit is contained in:
Frank A. Krueger 2018-02-21 15:47:46 -08:00
parent 7267bb2687
commit 7f1a4363ef
No known key found for this signature in database
GPG Key ID: 0471C67474FFE664
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ namespace Ooui.AspNetCore
var response = context.HttpContext.Response;
response.StatusCode = 200;
response.ContentType = "text/html; charset=utf-8";
response.Headers["Cache-Control"] = "no-cache, no-store, must-revalidate";
if (element.WantsFullScreen) {
element.Style.Width = GetCookieDouble (context.HttpContext.Request.Cookies, "oouiWindowWidth", 32, 640, 10000);