Skip to content

Commit

Permalink
StaticWebServerVerticle setCachingEnabled(false)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Aug 19, 2018
1 parent 11c1148 commit 33bf22b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public StaticWebServerVerticle(int httpPort, File webRoot) {

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

Expand Down

0 comments on commit 33bf22b

Please sign in to comment.