Skip to content

Backend gzipping fetching #262

@cyrilchapon

Description

@cyrilchapon

In here we've accomplished on-the-fly-compression-at-proxy-level with a basic

const express = require('express')
const httpProxy = require('http-proxy-middleware')

const app = require('express')()

app.use(compression())
app.use(httpProxy({
  // Our rules here
}))

Aggressively optimizing, we now would like to gzip build-time and be able to grab already gzipped files at proxy level, serving them to client

build

                          bundle.js
myfile.js   =>
                          bundle.js.tar.gz

serve

            /bundle.js/           /bundle.jz.tar.gz
client        =>          proxy          =>           application

Anyone with similar experience ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions