Merge pull request 'Fix Memex Update Form Jank' (#33) from master into release

Reviewed-on: https://git.marginalia.nu/marginalia/marginalia.nu/pulls/33
This commit is contained in:
Viktor Lofgren 2022-07-14 10:23:38 +02:00
commit 3197023834
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;
@ -233,3 +238,4 @@ footer {
box-shadow: #0008 0 0 5px;
}
}