Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Oct 13, 2010

  1. (dist) version bump

    authored October 13, 2010
  2. fix chunk copy error in node 0.2.3+

    authored October 13, 2010
  3. Larry Staton Jr.

    Add support for HTML5 cache.manifest files

    authored September 19, 2010 Alexis Sellier committed October 13, 2010
  4. Michael[tm] Smith

    added favicon image/x-icon MIME type to mime.js

    authored September 23, 2010 Alexis Sellier committed October 13, 2010
  5. Michael[tm] Smith

    added SVG MIME type to mime.js

    authored September 23, 2010 Alexis Sellier committed October 13, 2010

Aug 27, 2010

  1. (dist) version bump

    authored August 27, 2010
  2. fix mstat last-modified bug

    authored August 27, 2010

Aug 12, 2010

  1. (dist) remove 'lib' from directories

    authored August 12, 2010
  2. (dist doc) version bump & update docs

    authored August 12, 2010
  3. (api) serveFile takes a status and headers now.

    Major refactor to keep things clean, and manageable.
    authored August 12, 2010

Aug 06, 2010

  1. (dist) version bump

    authored August 06, 2010
  2. Jeremy Barnes

    If we're automatically serving up the index.html from a directory, we…

    … need
    
    to perform an extra stat() call to get the size of that file.  Otherwise,
    we end up setting the context-length to the size of the directory (4096
    bytes in my case).
    
    This would lead to the first N bytes of the file being served, and the
    client hanging around: the client was expecting more bytes, but the server
    was just waiting for the client to send another request.
    
    Even stranger, sometimes in the browser I'd get some binary data that looked
    like it could be a memory dump.  I don't know if that was a problem with
    firefox or if node-static was serving up some random data.
    
    ----
    
    Testing:
    
    I have a directory with an index.html file with 548 bytes that I'm serving
    up.
    
    Before:
    
    jeremy@dev:~/projects/xxx$ wget -S http://localhost:9876/
    --2010-08-05 14:26:42--  http://localhost:9876/
    Resolving localhost... ::1, 127.0.0.1
    Connecting to localhost|::1|:9876... failed: Connection refused.
    Connecting to localhost|127.0.0.1|:9876... connected.
    HTTP request sent, awaiting response...
      HTTP/1.1 200 OK
      Cache-Control: max-age=1
      Server: node-static/0.4.2
      Etag: "14160490-4096-1281030888000"
      Date: Thu, 05 Aug 2010 18:26:42 GMT
      Last-Modified: Thu, 05 Aug 2010 17:54:48 GMT
      Content-Length: 4096
      Content-Type: text/html
      Connection: keep-alive
    Length: 4096 (4.0K) [text/html]
    Saving to: `index.html.7'
    
    13% [====>                                  ] 548         --.-K/s  eta 2m 15s  ^C
    
    After fix:
    
    jeremy@dev:~/projects/xxx$ wget -S http://localhost:9876/
    --2010-08-05 14:51:41--  http://localhost:9876/
    Resolving localhost... ::1, 127.0.0.1
    Connecting to localhost|::1|:9876... failed: Connection refused.
    Connecting to localhost|127.0.0.1|:9876... connected.
    HTTP request sent, awaiting response...
      HTTP/1.1 200 OK
      Cache-Control: max-age=1
      Server: node-static/0.4.2
      Etag: "14160533-548-1281028503000"
      Date: Thu, 05 Aug 2010 18:51:41 GMT
      Last-Modified: Thu, 05 Aug 2010 17:15:03 GMT
      Content-Length: 548
      Content-Type: text/html
      Connection: keep-alive
    Length: 548 [text/html]
    Saving to: `index.html.8'
    
    100%[======================================>] 548         --.-K/s   in 0s
    
    2010-08-05 14:51:41 (1.48 MB/s) - `index.html.8' saved [548/548]
    
    Note that the Content-Length is now correct.
    authored August 06, 2010 Alexis Sellier committed August 06, 2010
  3. (doc) document serveFile

    authored August 06, 2010

Aug 04, 2010

  1. (dist) version bump

    authored August 03, 2010
  2. fix 304 condition

    authored August 03, 2010

Aug 03, 2010

  1. (dist) version bump

    authored August 03, 2010
  2. only serve from cache if it's recent enough

    authored August 03, 2010
  3. (dist) version bump

    authored August 03, 2010
  4. (new) support for directory streaming with concatination

    authored August 03, 2010
  5. mstat: multiple file stat utility

    authored August 03, 2010

Aug 02, 2010

  1. add 'less' mime type

    authored August 02, 2010
  2. (dist) version bump

    authored August 02, 2010
  3. fix http header case

    authored August 02, 2010
  4. (bench) init

    authored August 02, 2010
  5. (dist doc) version bump

    authored August 02, 2010
  6. (new) in-memory file caching

    authored August 02, 2010

Jul 29, 2010

  1. (dist) version bump

    authored July 29, 2010
  2. (new) serveFile

    authored July 29, 2010

Jul 27, 2010

  1. (dist) fix node version dependency

    authored July 27, 2010
  2. (dist) version bump

    authored July 27, 2010
  3. (doc) update example

    authored July 27, 2010
  4. (doc) update README

    authored July 27, 2010
  5. Various improvements & additions

    - Event Listener support
    - Custom headers
    - Fixed cache when 0
    - node-style callbacks
    authored July 27, 2010
  6. fix error logging

    authored July 27, 2010
  7. (doc) README init

    authored July 27, 2010
Something went wrong with that request. Please try again.