Giter Site home page Giter Site logo

apm-serve's Issues

Redirect to `/` if a given path doesn't exist

apm-serve currently tries to fetch content provided in a package.

For example, aragon.mainnet.aragonpm.com/manifest.json fetches the deployment manifest.json, but aragon.mainnet.aragonpm.com/organization may be a common typo and should at least redirect to the index.

Given that apm-serve is only serving as a gateway to frontends deployed on aragonPM, redirecting to / (to get the index.html, if one exists) is akin to what would need to happen with SPA-based routers anyway.

Name

By my personal preference order:

  • apm-serve
  • apm-gateway
  • apm-server

Fallback to second last version if latest version is unresolvable

During deployments, mainnet.aragon.org and rinkeby.aragon.org usually come down for a few minutes because apm-serve is trying to get the latest content that the connected IPFS node doesn't know have cached yet.

Ideally we would wait a maximum of 500ms to 1s on resolving the latest version of a package, before falling back to loading the last version.

To avoid having false fallbacks in times of high load, we could cache whether we've been able to serve a version of a package and avoid doing the fallback if so.

Brotli support

Support for Brotli recently landed in Node.js (11.7.0), and should be added to compression soon.

Iโ€™m opening this issue to remember to upgrade compression when the feature gets released, so we can start using it as soon as possible.

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.