firebase / superstatic Goto Github PK
View Code? Open in Web Editor NEWSuperstatic: a static file server for fancy apps.
License: MIT License
Superstatic: a static file server for fancy apps.
License: MIT License
--no-cache option on server start as well
divshot.json
OR superstatic.json
Right now it just servers the same content.
use the referer header to help along relative asset paths
It tries to restart the server before it has restarted and crashes.
There should be an exclude
key that is an array of file globs (relative to the root
) for files to effectively purge from the list.
I should be able to specify an auth key with username and password. If the auth key is set in the config, use HTTP Basic Auth to verify username and password before serving up files.
We run into issues when we start a superstatic server and the directly has a huge file list.
Instead of watching files for changes and reloading the file list, we just check the current working directory if the file exists on each request
Maybe we can just update the req.url
and then let connect do the rest...?
We need to support redirection via the superstatic JSON config. Like so:
{
"redirects": {
"some/path/goes/here":"other/path/here",
"some/wilcard/:segment/path":"other/wilcard/:segment/path",
}
}
By default, redirects should use the 301
status. However, the user can specify a custom status like so:
{
"redirects": {
"some/path/here": [302, "other/path/here"]
}
}
3600 instead
with the hosted docs, for example the route /integrations/grunt
redirects to /grunt
and there are no custom routes.
Use case, at this point, is for the web hook for divshot.io
divshot.json vs superstatic.json
from the divshot.io docs
<a class="list-group-item" href="/integrations/jekyll.html">Jekyll</a>
This works from the home page, but if you're on a sub page, it does a funky redirect.
People probably won't expect caching to be on by default. Turn it off and remove any references to default caching from README etc.
instead of loading the knox client in superstatic
When the server restarts on file change, command line args like --port
and --config
no longer apply.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.