From b9610c6253de648eae7c47d673ea9b405e83ca83 Mon Sep 17 00:00:00 2001 From: Tony Pagaduan Date: Fri, 20 Jun 2025 03:15:44 -0400 Subject: [PATCH] Added acceptRanges property for use in serve-static --- lib/interfaces/serve-static-options.interface.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/interfaces/serve-static-options.interface.ts b/lib/interfaces/serve-static-options.interface.ts index e6196c40..37b987f8 100644 --- a/lib/interfaces/serve-static-options.interface.ts +++ b/lib/interfaces/serve-static-options.interface.ts @@ -34,6 +34,12 @@ export interface ServeStaticModuleOptions { * Passed down to the underlying either `express.static` or `fastify-static.send` */ serveStaticOptions?: { + /** + * Enable or disable accepting ranged requests, defaults to true. + * Disabling this will not send Accept-Ranges and ignore the contents of the Range request header. + */ + acceptRanges?: boolean; + /** * Enable or disable setting Cache-Control response header, defaults to true. * Disabling this will ignore the immutable and maxAge options.