preCompressed

fun Route.preCompressed(
    vararg types: CompressedFileType = CompressedFileType.values(),
    configure: Route.() -> Unit
): Unit

Support pre-compressed files in the file system only (not just any classpath resource)

For example, by using preCompressed (or preCompressedCompressedFileType.BROTLI), the local file /foo/bar.js.br can be found @ http…./foo/bar.js

Appropriate headers will be set and compression will be suppressed if pre-compressed file is found

Notes: