Repository navigation
implementation "com.github.pcdv.flak:flak-api:3.8.2"
runtimeOnly "com.github.pcdv.flak:flak-backend-jdk:3.8.2"Fixes
A static file that cannot be sent in full now gives a broken response. Before, the response
ended normally with a short body, and a browser kept it as complete: for a year with an
immutable Cache-Control.
- A read error while a file of
serveDir()orserveClasspath()is sent now closes the
connection without ending the response, as for a handler that returns anInputStream. - A file of
serveDir()is read up to the size it had when it was opened. If it gets shorter
in the meantime (e.g. rewritten in place by a build), the response is broken. If it grows,
the response stops at that size.
Flak cannot tell that a file is wrong when it is already empty or half written when it is
opened. Keep immutable for files that never change in place.
See Static resources.