Permalink
Commits on Oct 13, 2010
  1. fix chunk copy error in node 0.2.3+

    cloudhead committed Oct 13, 2010
  2. Add support for HTML5 cache.manifest files

    statonjr committed with Alexis Sellier Sep 19, 2010
  3. added favicon image/x-icon MIME type to mime.js

    sideshowbarker committed with Alexis Sellier Sep 23, 2010
  4. added SVG MIME type to mime.js

    sideshowbarker committed with Alexis Sellier Sep 23, 2010
Commits on Aug 27, 2010
  1. (dist) version bump

    cloudhead committed Aug 27, 2010
  2. fix mstat last-modified bug

    cloudhead committed Aug 27, 2010
Commits on Aug 12, 2010
  1. (dist) remove 'lib' from directories

    cloudhead committed Aug 12, 2010
  2. (dist doc) version bump & update docs

    cloudhead committed Aug 12, 2010
  3. (api) serveFile takes a status and headers now.

    Major refactor to keep things clean, and manageable.
    cloudhead committed Aug 12, 2010
Commits on Aug 6, 2010
  1. (dist) version bump

    cloudhead committed Aug 6, 2010
  2. 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.
    jeremybarnes committed with Alexis Sellier Aug 5, 2010
  3. (doc) document serveFile

    cloudhead committed Aug 6, 2010
Commits on Aug 4, 2010
  1. (dist) version bump

    cloudhead committed Aug 4, 2010
  2. fix 304 condition

    cloudhead committed Aug 4, 2010
Commits on Aug 3, 2010
  1. (dist) version bump

    cloudhead committed Aug 3, 2010
  2. only serve from cache if it's recent enough

    cloudhead committed Aug 3, 2010
  3. (dist) version bump

    cloudhead committed Aug 3, 2010
  4. mstat: multiple file stat utility

    cloudhead committed Aug 3, 2010
Commits on Aug 2, 2010
  1. add 'less' mime type

    cloudhead committed Aug 2, 2010
  2. (dist) version bump

    cloudhead committed Aug 2, 2010
  3. fix http header case

    cloudhead committed Aug 2, 2010
  4. (bench) init

    cloudhead committed Aug 2, 2010
  5. (dist doc) version bump

    cloudhead committed Aug 2, 2010
  6. (new) in-memory file caching

    cloudhead committed Aug 2, 2010
Commits on Jul 29, 2010
  1. (dist) version bump

    cloudhead committed Jul 29, 2010
  2. (new) serveFile

    cloudhead committed Jul 29, 2010
Commits on Jul 27, 2010
  1. (dist) fix node version dependency

    cloudhead committed Jul 27, 2010
  2. (dist) version bump

    cloudhead committed Jul 27, 2010
  3. (doc) update example

    cloudhead committed Jul 27, 2010
  4. (doc) update README

    cloudhead committed Jul 27, 2010
  5. Various improvements & additions

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

    cloudhead committed Jul 27, 2010
  7. (doc) README init

    cloudhead committed Jul 27, 2010
  8. Initial commit

    cloudhead committed Jul 27, 2010