Skip to content

Support for multipart range requests #1229

Open
@wgreenberg

Description

@wgreenberg

Feature Proposal

Currently, webpack-dev-middleware only supports single-range requests, and will return the entire requested resource if multiple ranges are specified (https://github.com/webpack/webpack-dev-middleware/blob/master/src/middleware.js#L215-L218). I didn't see any documentation around this, or previous discussion about why it wasn't supported, so figured it'd be worth requesting the feature.

Feature Use Case

A multipart range request would allow noclip.website to load specific meshes/game objects efficiently without shipping an otherwise incredibly large (sometimes >1GB) game data file.

Please paste the results of npx webpack-cli info here, and mention other relevant information

  System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz 
    Memory: 6.98 GB / 15.89 GB
  Binaries:
    Node: 16.14.0 - C:\Program Files\nodejs\node.EXE        
    npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (99.0.1150.39)
    Internet Explorer: 11.0.19041.1566
  Packages:
    babel-loader: ^8.2.2 => 8.2.3 
    css-loader: ^5.2.4 => 5.2.7 
    eslint-config-webpack: ^1.2.5 => 1.2.5 
    file-loader: ^6.2.0 => 6.2.0 
    html-webpack-plugin: ^4.5.2 => 4.5.2 
    less-loader: ^7.3.0 => 7.3.0 
    style-loader: ^2.0.0 => 2.0.0 
    url-loader: ^4.1.1 => 4.1.1 
    webpack: ^5.69.1 => 5.70.0 
    webpack-cli: ^4.7.2 => 4.9.2 
    webpack-dev-middleware: ^5.3.1 => 5.3.1 
    webpack-merge: ^5.8.0 => 5.8.0 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions