Giter Club home page Giter Club logo

cee-de-en's Issues

[Needed] Automatic Content-Type filling

Currently the content-type is hardcoded, which is obviously stupid, we should detect the content type from the file extension and pass it correctly to the response headers.

Simple task, but we need to find a way to map 'extension' to 'content-type', perhaps a crate for this?

[Needed] A config file system

The daemon uses hardcoded dummy values, we need to allow total customisation of the daemon... from network interface, to minifier and brotli parameters, the ability to determine which directory to host from, and what 'base route' to serve from, there's plenty of options we should allow.

[Needed] Much better error handling

We need to handle missing files properly (return 404s), ensure full integrity and stability of all the internal transformations (minifier, brotli, ut8<--->byte conversion ops, file parsing, etc), we cannot let any errors go uncaught and especially not let them leak into responses.

If the request itself causes issues, such as missing files, weird request input, then we toss back the expected HTTP code (bad request).

[Needed] Time-based caching of resources

We should follow a philo of "do not do the same computation twice", thus, any time we minify or compress a resource, we should cache this to be able to re-serve it MUCH faster with zero computational overhead or wasting of CPU cycles.

This should be optimised in a way that tries to balance between memory preservation, and maximise "hot" / frequent file requests hitting the cache, infrequent files or noticable traffic drops should prompt a drop from the cache, somewhat like a Garbage Collector.

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.