Opened 11 months ago

Last modified 11 months ago

#2265 new defect

Move all static content from jsps to servlets

Reported by: zzz Owned by: zzz
Priority: minor Milestone: 0.9.37
Component: apps/console Version: 0.9.34
Keywords: Cc:
Parent Tickets:


jsps with nothing but Java code for serving static content was started by jrandom and has been proliferated in the years since.

This is inefficient as we must handle last-modified and other headers and responses ourselves, and we don't handle things like range headers. Jsp + things like FileUtil? replace efficient Jetty nio handling. We also have to set outbound headers like content-type.

By using a Servlet and setting the resource, most of that will be handled for us. To be replaced:


Subtickets (add)

Change History (2)

comment:1 Changed 11 months ago by zzz

make new package net.i2p.router.web.servlets
move CodedIconRendererServlet? from helpers to servlets
add new servlets there
see also #2270

comment:2 Changed 11 months ago by zzz

Moved CodedIconRendererServlet? in d01f663ed5061112379b1df0b1cc642494fe9355 to be 0.9.35-1

Note: See TracTickets for help on using tickets.