Fix Memex Update Form Jank

This commit is contained in:
vlofgren 2022-07-14 10:22:38 +02:00
parent 978311327e
commit 63d9c70667
2 changed files with 10 additions and 1 deletions

View File

@ -73,6 +73,9 @@ public class MemexService extends Service {
before((req, rsp) -> {
logger.info("{} {}", req.requestMethod(), req.pathInfo());
});
after((req, rsp) -> {
rsp.header("Cache-control", "no-cache");
});
post("/create", this::create);
get("/create", this::createForm, this::renderModel);

View File

@ -5,6 +5,11 @@ body {
background-color: #f8f8ee;
}
textarea {
width: 100%;
height: 60ch;
}
header {
background-color: #acae89;
color: #fff;
@ -232,4 +237,5 @@ footer {
color: #aaa;
box-shadow: #0008 0 0 5px;
}
}
}