Git Product home page Git Product logo

Comments (4)

huseeiin avatar huseeiin commented on August 26, 2024 1

its a bun issue.

from solid-start.

mdynnl avatar mdynnl commented on August 26, 2024

did you forget to include steps? anyway, can't seem to reproduce this.

  1. both brotli and gzip are enabled by default and working.
  2. compressPublicAssets: false disables both.
  3. compressPublicAssets: { gzip: false, brotli: false } disables each respectively.

tested with solid-start/basic template

├── @solidjs/[email protected]
├── @solidjs/[email protected]
├── @solidjs/[email protected]
├── [email protected]
└── [email protected]

from solid-start.

huseeiin avatar huseeiin commented on August 26, 2024

did you forget to include steps? anyway, can't seem to reproduce this.

1. both `brotli` and `gzip` are enabled by default and working.

2. `compressPublicAssets: false` disables both.

3. `compressPublicAssets: { gzip: false, brotli: false }` disables each respectively.

tested with solid-start/basic template

├── @solidjs/[email protected]
├── @solidjs/[email protected]
├── @solidjs/[email protected]
├── [email protected]
└── [email protected]

with the basic example i'm only seeing gzip in the network tab
image

from solid-start.

mdynnl avatar mdynnl commented on August 26, 2024

i believe this is expected because the response can only be served in one of a few encoding formats specified by Accept-Encoding request header. you probably should see what you're expecting if you modified the request headers somehow to accept brotli.

Screenshot 2024-07-03 at 20 03 31

some info that might be useful https://nitro.unjs.io/config#compresspublicassets

If enabled, Nitro will generate a pre-compressed (gzip and/or brotli) version of supported types of public assets and prerendered routes larger than 1024 bytes into the public directory. The best compression level is used. Using this option you can support zero overhead asset compression without using a CDN.

from solid-start.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.