From 1ade9329354e0dcd86d5c5d8fdb9ed7edbbce3e7 Mon Sep 17 00:00:00 2001 From: Paul Serby Date: Thu, 16 Feb 2012 01:49:33 +0000 Subject: [PATCH] Adding irickt to credits --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8ceb86e..1bd9814 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ versionator was built to solve the problem of static assets getting stuck in bro Without versionator this is what can happen: -You set your static content to be cached and expire in 30 days time. +You set your static content to be cached and expire in 30 days time. express.static(__dirname + '/public', { maxAge: 2592000000 }) @@ -30,7 +30,7 @@ A better solution is to use versionator! ### Basic Middleware -The simplest way to use versionator is to use the basic middleware which looks for the given +The simplest way to use versionator is to use the basic middleware which looks for the given version number in a url path and strips it out. Add versionator into your middleware stack before the static middleware: @@ -60,7 +60,7 @@ e.g. ### HTML