Skip to content

Commit 33bf22b

Browse files
committed
StaticWebServerVerticle setCachingEnabled(false)
see https://github.com/vorburger/minecraft-storeys-maker/issues/97
1 parent 11c1148 commit 33bf22b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/main/java/ch/vorburger/minecraft/storeys/web/StaticWebServerVerticle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public StaticWebServerVerticle(int httpPort, File webRoot) {
4747

4848
@Override
4949
protected void addRoutes(Router router) {
50-
// see https://github.com/vorburger/minecraft-storeys-maker/issues/97 re. setFilesReadOnly(false)
51-
router.route("/*").handler(StaticHandler.create().setDirectoryListing(true).setWebRoot(webRoot).setFilesReadOnly(false));
50+
// see https://github.com/vorburger/minecraft-storeys-maker/issues/97 re. setFilesReadOnly(false) & setCachingEnabled(false)
51+
router.route("/*").handler(StaticHandler.create().setDirectoryListing(true).setWebRoot(webRoot).setCachingEnabled(false).setFilesReadOnly(false));
5252
LOG.info("Going to serve static web content from {} on port {}", webRoot, httpPort);
5353
}
5454

0 commit comments

Comments
 (0)