Skip to content
Browse files

Cleaning up some comments and readme

  • Loading branch information...
1 parent 89a2bc5 commit c0d8c50cb5400f8616dfccf36df62d795c357238 Zachary Parmley committed Aug 15, 2012
Showing with 9 additions and 11 deletions.
  1. +8 −10 BillBill.js
  2. +1 −1 README.md
View
18 BillBill.js
@@ -15,18 +15,16 @@ var config = [
host : 'localhost:10001',
origin : 'localhost:2020',
defaultTtl : 7200,
- rules : [
+ rules : [
{
route : '/nocache*',
- ttl : 0
- },
- {
+ ttl : 0
+ },{
route : '/cache5seconds*',
- ttl : 5
- },
- {
+ ttl : 5
+ },{
route : '/cache100seconds*',
- ttl : 20
+ ttl : 100
}
]
}
@@ -50,9 +48,9 @@ http.createServer(function(req, resp) {
// TODO: I'd hoped to do something a little different, namely pipe the request to multiple destinations (file and response) but alas, it is beyond me at the moment
// TODO: This lacks efficiency in that it reads data it technically already has out of a file
- // TODO: I'm a little worried about a race condition with this setup, where the request is complete but the file write is not, so an incomplete file is read and set back - not sure yet if this is a problem or best sollution
+ // TODO: I'm a little worried about a race condition with this setup, where the request is complete but the file write is not, so an incomplete file is read and sent back - not sure yet if this is a problem or best sollution
- // DEV Currently a server on 2020 is waitig 3 seconds and sending a simple response, for dev
+ // DEV Currently a server on 2020 is waiting 3 seconds and sending a simple response, for dev
// Request from the origin and pipe it to the cache file
request('http://localhost:2020', function(e, r, b) {
if (!e) {
View
2 README.md
@@ -12,7 +12,7 @@ BillBill should sit between the world and a website. With some basic rules it s
## Fresh slate
Originally I was getting kind of complicated, and trying to learn a lot of new things at once. I was using Alfred, and thinking of writing a model layer that allowed requests to be streamed into a particular field of an Alfred model for cache storage. It was all getting a bit overburdened and cumbersome.
-So, I was listening to NodeUP on a trip recently and heard about the 'filed' module (https://github.com/mikeal/filed). I decided I should use it's lovely request/response streaming capabilities to focus on getting a core project done, and enhance to something more complicated later should the need arise.
+So, I was listening to NodeUP on a trip recently and heard about the [filed](https://github.com/mikeal/filed) module. I decided I should use it's lovely request/response streaming capabilities to focus on getting a core project done, and enhance to something more complicated later should the need arise.
## Currently
Very simple, and not complete at all

0 comments on commit c0d8c50

Please sign in to comment.
Something went wrong with that request. Please try again.