From 1ab282772efc73ad4502d205fdbde6e18e3611c3 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 1 Jun 2024 18:33:40 +0100 Subject: [PATCH] re-enable the cache and make the buttons smaller --- .../cc/fascinated/backend/config/ThymeleafConfiguration.java | 1 - src/main/resources/templates/index.html | 2 +- src/main/resources/templates/paste.html | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/cc/fascinated/backend/config/ThymeleafConfiguration.java b/src/main/java/cc/fascinated/backend/config/ThymeleafConfiguration.java index 7565333..6cff60a 100644 --- a/src/main/java/cc/fascinated/backend/config/ThymeleafConfiguration.java +++ b/src/main/java/cc/fascinated/backend/config/ThymeleafConfiguration.java @@ -28,7 +28,6 @@ public class ThymeleafConfiguration { templateResolver.setPrefix("classpath:/templates/"); templateResolver.setSuffix(".html"); templateResolver.setTemplateMode("HTML"); - templateResolver.setCacheable(false); return templateResolver; } diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 5f913cb..24a5670 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -21,7 +21,7 @@
-
diff --git a/src/main/resources/templates/paste.html b/src/main/resources/templates/paste.html index bcb4bce..8d743e8 100644 --- a/src/main/resources/templates/paste.html +++ b/src/main/resources/templates/paste.html @@ -18,12 +18,12 @@
- -