Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
maxAge 0 for static example
  • Loading branch information
tj committed Feb 28, 2011
1 parent ba97754 commit 1c66453
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/static.js
Expand Up @@ -5,10 +5,8 @@

var connect = require('../');

var oneDay = 86400000;

connect(
connect.static(__dirname + '/public', { maxAge: oneDay })
connect.static(__dirname + '/public', { maxAge: 0 })
, function(req, res) {
res.setHeader('Content-Type', 'text/html');
res.end('<img src="/tobi.jpeg" />')
Expand Down

0 comments on commit 1c66453

Please sign in to comment.