I'm replacing an obsolete Jetty 9 + Shiro site with vertx 4.2.7.
All is well except every GET of a static resource is generating a new session. Any ideas on how to avoid this please? If necessary I can create a seperate server on a different port without a session handler, but I guess I'm simply missing something in the server config.
Router router = Router.router(vertx);
router.route()
.handler(SessionHandler.create(sessionStore))
.handler(FaviconHandler.create(vertx,
SitesManager2.getSitesPath().resolve("favicon.ico").toString()))
.handler(LoggerHandler.create(LoggerFormat.TINY))
.handler(bodyHandler).handler(basicAuthHandler)
.handler(this::maintenanceFilter)
.handler(this::clientAccessFilter2);
// static routes (new session every time...)
router.get("/static/*").handler(StaticHandler.create());
// other routes (existing session honoured)
...
TIA