st - A node module for serving static files. Does etags, caching, etc.

  •        16

A module for serving static files. Does etags, caching, etc.Here are some very simple usage examples.

https://github.com/isaacs/st

Dependencies:

async-cache : ~1.1.0
bl : ~1.2.1
fd : ~0.0.2
mime : ~1.4.1
negotiator : ~0.6.1

Tags
Implementation
License
Platform

   




Related Projects

s3deploy - A simple tool to deploy static websites to Amazon S3 and CloudFront with Gzip and custom headers support (e

  •    Go

A simple tool to deploy static websites to Amazon S3 and CloudFront with Gzip and custom headers support (e.g. "Cache-Control"). It uses ETag hashes to check if a file has changed, which makes it optimal in combination with static site generators like Hugo. Pre-built binaries can be found here.

sw-precache - A node module to generate service worker code that will precache specific resources so they work offline

  •    Javascript

Service Worker Precache is a module for generating a service worker that precaches resources. It integrates with your build process. Once configured, it detects all your static resources (HTML, JavaScript, CSS, images, etc.) and generates a hash of each file's contents. Information about each file's URL and versioned hash are stored in the generated service worker file, along with logic to serve those files cache-first, and automatically keep those files up to date when changes are detected in subsequent builds. Serving your local static resources cache-first means that you can get all the crucial scaffolding for your web app—your App Shell—on the screen without having to wait for any network responses.

node-static - rfc 2616 compliant HTTP static-file server module, with built-in caching.

  •    Javascript

node-static understands and supports conditional GET and HEAD requests. node-static was inspired by some of the other static-file serving modules out there, such as node-paperboy and antinode. This will set the Cache-Control header, telling clients to cache the file for an hour. This is the default setting.

serve-static - Serve static files

  •    Javascript

Create a new middleware function to serve files from within a given root directory. The file to serve will be determined by combining req.url with the provided root directory. When a file is not found, instead of sending a 404 response, this module will instead call next() to move on to the next middleware, allowing for stacking and fall-backs. Enable or disable accepting ranged requests, defaults to true. Disabling this will not send Accept-Ranges and ignore the contents of the Range request header.

actionpack-page_caching - Static page caching for Action Pack (removed from core in Rails 4.0)

  •    Ruby

Static page caching for Action Pack (removed from core in Rails 4.0).Page caching is an approach to caching where the entire action output is stored as a HTML file that the web server can serve without going through Action Pack. This is the fastest way to cache your content as opposed to going dynamically through the process of generating the content. Unfortunately, this incredible speed-up is only available to stateless pages where all visitors are treated the same. Content management systems -- including weblogs and wikis -- have many pages that are a great fit for this approach, but account-based systems where people log in and manipulate their own data are often less likely candidates.


serve - Simple command-line file / directory server built with connect - supports stylus, jade, etc

  •    Javascript

Simple 5 minute command-line file / directory server built with connect, inspired by nodejitsu's http-server to show off the simplicity and flexibility of connect as a modular server.Note: the "serve" name on NPM (as of 2.x) refers to https://github.com/zeit/serve.

AutoIndex PHP Script (Directory Indexer)

  •    PHP

AutoIndex is a PHP script that makes a table that lists the files in a directory, and lets users access the files and subdirectories. It includes searching, icons for each file type, an admin panel, uploads, access logging, file descriptions, and more.

SVGAPlayer-iOS - Similar to Lottie

  •    Objective-C

SVGAParser use NSURLSession request remote data via network. You may use following ways to control cache. Server response SVGA files in Body, and response header either. response header has cache-control / etag / expired keys, all these keys telling NSURLSession how to handle cache.

send - Transfer static files

  •    Javascript

Static file serving middleware. Note that root is required, defaults to '' and will be resolved, removing the leading / to make the path relative and this path must not contain "..", protecting developers from concatenating user input. If you plan on serving files based on user input supply a root directory from which to serve from.

serve - Static file serving and directory listing

  •    Javascript

Ever wanted to share a project on your network by running just a command? Then this module is exactly what you're looking for: It provides a neat interface for listing the directory's contents and switching into sub folders.If you set the --auth flag, the package will look for a username and password in the SERVE_USER and SERVE_PASSWORD environment variables.

page-cache - Caches responses as static files on disk for lightning fast page loads.

  •    PHP

This package allows you to easily cache responses as static files on disk for lightning fast page loads. While static site builders such as Jekyll and Jigsaw are extremely popular these days, dynamic PHP sites still offer a lot of value even for a site that is mostly static. A proper PHP site allows you to easily add dynamic functionality wherever needed, and also means that there's no build step involved in pushing updates to the site.

SPTPersistentCache - Everyone tries to implement a cache at some point in their iOS app’s lifecycle, and this is ours

  •    Objective-C

Everyone tries to implement a cache at some point in their app’s lifecycle, and this is ours. This is a library that allows people to cache NSData with time to live (TTL) values and semantics for disk management.SPTPersistentCache is designed as an LRU cache which makes use of the file system to store files as well as inserting a cache header into each file. This cache header allows us to track the TTL, last updated time, the redundancy check and more. This allows the cache to know how often a file is accessed, when it was made, whether it has become corrupt and allows decisions to be made on whether the cache is stale.

EVURLCache - a NSURLCache subclass for handling all web requests that use NSURLRequest

  •    Swift

EVURLCache respects the HTTP header variables 'Cache-Control' and 'Pragma' when these contain 'no-cache' or 'no-store' then the response will not be written to the cache. You do have to be aware that if the file is already in the cache because you have put it in the PreCache folder yourself or the file was previously fetched with different header variables, the file will be written to the cache in order to update it's contents and the HTTP header varialbes will be ignored. EVURLCache will also take into account the HTTP header variable 'Access-Control-Max-Age' when reading from the cache. When the content is older it will try to fetch it again.

MagpieRSS - XML-based RSS parser in PHP

  •    PHP

MagpieRSS is compatible with RSS 0.9 through RSS 1.0. Also parses RSS 1.0's modules, RSS 2.0, and Atom. (with a few exceptions)

docker-nginx - Nginx Docker image for easy hosting of static sites

  •    Nginx

A high-performance Nginx base image for Docker to serve static websites. It will serve anything in the /var/www directory. The trusted build information can be found on the Docker Hub at https://registry.hub.docker.com/u/kyma/docker-nginx/.

File::Cache

  •    

File::Cache is a perl module that enables the sharing of object data across processes via the filesystem. Use of File::Cache is now discouraged in favor of the new Cache::Cache project available at http://sourceforge.net/projects/perl-cache/.

aws-git-backed-static-website - Git-backed Static Website powered entirely by AWS CloudFormation stack

  •    Python

This project contains a YAML CloudFormation template that creates a CodeCommit Git repository and a static https website, along with the necessary AWS infrastructure glue so that every change to content in the Git repository is automatically deployed to the static web site. The website can serve the exact contents of the Git repository, or a static site generator plugin (e.g., Hugo) can be specified on launch to automatically generate the site content from the source in the Git repository.

django-s3direct - Add direct uploads to S3 with a progress bar to file input fields

  •    Javascript

Add direct uploads to AWS S3 functionality with a progress bar to file input fields. With 1.0.0 supporting multipart-upload, most of the internals have been changed, a new endpoint has been added, and support has been dropped for old style positional settings. There are also new requirements to allow GET and HEAD cross-origin requests to S3, as well as the ETAG header. Django compatibility has been raised to >=1.8.

AFCache - AFCache is an HTTP cache for iOS and OSX seeking towards full RFC2616 compliance

  •    Objective-C

AFCache is an HTTP disk cache for use on iPhone/iPad and OSX. It can be linked as a static library or as a framework. The cache was initially written because on iOS, NSURLCache ignores NSURLCacheStorageAllowed and instead treats it as NSURLCacheStorageAllowedInMemoryOnly which is pretty useless for a persistent cache. Build a fully RFC2616 compliant cache instead of doing simple time-based caching Status: Works for general use, some edge cases might not be compliant/implemented yet.

bootup.js - Cache and load static files from local storage.

  •    Javascript

Cache and load static files from local storage. This makes it easier to manage Javascript and other files for offline use, or just to improve the startup time of your web app. Simply instantiate a new BootUp object with an array of files to load.