Comments (1)
Brotli compression cannot be reliably detected on files at runtime. According to this study, there is a 95% false positive ratio, meaning practically nothing can be trusted. Brotli does not have identifying bytes, so attempting to automate this will be buggy at best. This differs from gzip compression, which does have identifying bytes (and could therefore be detected).
An alternative solution would be maintaining a list of files (or filename patterns, http route patterns, etc) which are pre-compressed. This list could be referenced at runtime, applying the appropriate HTTP response headers for brotli-compressed files. A lookup like this adds latency to response times, but it would be minimal and unperceivable. Most major object storage platforms (like S3) do something similar.
The alternative solution could be an option, similar to other runtime processing options.
from fenix.
Related Issues (20)
- 3.0.0-rc.13 directories with space or special characters are not getting resolved HOT 4
- Can't Share (Localtunnel Down) HOT 4
- Cool App but doesn't work under macOS 10.15.3 needs to be updated. HOT 1
- Error installing CLI utility on macOS HOT 6
- "Force Port" dialog option bugged(?) in 3.0.0-rc.13 HOT 4
- Question about Fenix capacity HOT 3
- Documentation site not accessible HOT 1
- ipa download not working HOT 2
- Right click menu item in windows 10 not removed on uninstall HOT 1
- demo will not open via fenix HOT 1
- htaccess HOT 1
- xml json HOT 1
- Filenames with spaces don't resolve (3.0.0-rc.13)
- [DATE]: [if it active developing?] HOT 1
- special characters with accents (ä, é, ö) are rendered as � (3.0.0-rc.13) HOT 1
- Doesn't work on Apple Silicon M1 Mac ? HOT 1
- simplewebserver (continution of 200OK Chrome app)
- WebDAV
- MAC OS 13.5.1 Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fenix.