diff --git a/Ooui/Server.cs b/Ooui/Server.cs index e5a3c13..9e25de3 100644 --- a/Ooui/Server.cs +++ b/Ooui/Server.cs @@ -79,6 +79,7 @@ namespace Ooui response.ContentLength64 = clientJsBytes.LongLength; response.ContentType = "application/javascript"; response.ContentEncoding = Encoding.UTF8; + response.AddHeader ("Cache-Control", "public, max-age=3600"); using (var s = response.OutputStream) { s.Write (clientJsBytes, 0, clientJsBytes.Length); } @@ -103,14 +104,13 @@ namespace Ooui response.StatusCode = 200; response.ContentType = "text/html"; response.ContentEncoding = Encoding.UTF8; + var html = Encoding.UTF8.GetBytes ($@" +